Coding Error : Function Definition is not allowed here

I’m tryin to code an infinite loop to my flywheel but I keep on having an error that says Function Definition is not allowed here.
this is my code:


I have never seen this error before so can someone help me.

looks like main may be inside another function.
you cannot nest functions.

2 Likes

so what should it look like

Never Mind, the issue was in earlier in the code