due condizione con un if

mi da questo errore

ISO C++ forbids comparison between pointer and integer [-fpermissive]