Well... to start, it looks like your programming with a "C" compiler. I'm not very fluent with C. This forum is for the Picbasic compilers from Melabs. There maybe someone here that can help out, but really you should look for the forums dedicated to your compiler. Sorry!