Everything I say refers to C/C++ not to AFL directly keep that in mind!
>So is the problem that the switch() statement does not support arrays?
Based on the error message you get as well as the fact that you claim AFL is similar to C then yes, that is the culprit! C/C++ allows only...
knowing absolutely nothing about afl i still decided to take a look at your code (attachment). i do know my share of c/c++ however and since afl looks so familiar....
highlighted is the first switch statement, so the code breaks obviously here. that means the switch statement is not correct...