Main.cc: In function 'int main()': Main.cc:15:12: error: 's' was not declared in this scope if(s[i]!=s[n-1-i]) {f=false;break;} ^