The error is probably on the line right before where it shows the error. Spaces and carrage returns are optional in C (you can put your whole program on one line if you felt like it) so sometimes the compiler is wrong about what line the error is actually on.