AWOL:
Here's a simple tip; if the compiler says "C++ forbids comparison between pointer and integer", look through your code for all the places you do any comparisons. The compiler will normally narrow it down to an individual function.
The compiler will narrow it down to a specific line, and a specific character on that line, pin-pointing EXACTLY where the error is. One has only to actually READ the error message....
Regards,
Ray L.