This forum is for the PICBASIC compiler.

Your code appears to be a variant of "C" rather than BASIC

You may need to look elsewhere.

sorry