Why is this showing error?

this code is running perfectly. is it compile error or run error?
one reason might be your compiler is unable to recognize ‘and’, ‘or’ operators.
try to use && and || in place of ‘and’, ‘or’ operators.

thanks