What is the syntax error you are getting? I can compile the below fine (fixed a few typos in your post, but I assume that isn't the issue - missing ; and DO not Do...) in both a c script and cpp script.
I am using QALoad v5.06 build 201 and the first one which you stated causes the syntax error compiles fine. I've also tried putting it into 5.07 and this too compiles fine. QALoad can sometimes lie about which line the syntax error is actually on so if I were you I would look at the code before and after this line.