That's a c++ source file. This forum is about Jass.
If the world editor tells you something is wrong with a line in your Jass script, it is often because the previous command is invalid.
Well thank you very much, I probably should've guessed that when part of the extension is buildwar3x. In any case, could a mod move this to the appropriate forum? Thanks.