Why does it say that a function definition is not allowed here?

I have been trying out VEXcode Pro V5 and was wondering why it kept saying this after putting in my code. I wasn’t quite sure how to fit all of my code in so, if possible, can you help me with that?

I guess your code structure is incorrect, you probably have functions inside other functions, that’s not valid C code.

4 Likes

Ok thank you so much for a quick response.