Checksum calculation for XBee/Writing on serial code won't compile

Thank you for responding,

I just noticed the problem might lay somewhere else Even if I put an empty loop the code won't compile.
Any tips on that ?