Missing '{' in 'struct'

I have seen similar problems in a friend’s code.
You should try cutting out all the code that throws the errors and saving it elswehere until your code compiles, then systematically adding it back in.
When I did this I was able to find several lines of whitespace near commented code that was throwing all sorts of strange errors, but when deleted fixed the problem.
Good luck hunting your issue down.