F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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.


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-07-06 01:16:27, Gzip enabled