: In function 'int symlen(char*, char*)': :5:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 5 | while(*sl==*sr&&sr!='\0'){--sl;--sr;} | ~~^~~~~~