0_0_28602535_790.cpp:1:456: fatal error: GCC4.9.2/lib/gcc/x86_64-w64-mingw32/4.9.2/include/iostream>usin: Invalid argument
#include<iostream>using namespace std;int main(){ int n; cin>>n; char s[50]; cin.ignore(); while(n--){ gets(s); int m =strlen(s); int i=0,l=0,r=m-1;//record the position left and right of the array if(m==2){ if(s[0]==s[1]) cout<<"yes"<<endl; else cout<<"no"<<endl; }else{ for(;i<m/2;i++){ if(s[l] == s[r]){ r--; l++; } } if( l == r || l-1 == r){ cout<<"yes"<<endl; }else{ cout<<"no"<<endl; } } } return 0;}
^
compilation terminated.
|