| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 156964 | 王顺煜 | 回文字符串I | C++ | Compile Error | 0 MS | 0 KB | 292 | 2026-07-12 10:03:09 |
#include<bits/stdc++.h> using namespace std; int main() { string a; int max,cnt=0; cin>>a; // int la = a.size(); int i = 0; while(a[i]!='\0') { cnt++; } while(a[i]!='\0') { if(a[i]!=a[cnt-1-i]) { cout<<"No"; }else{ cout<<"Yes"; } }
Main.cc: In function 'int main()':
Main.cc:5:6: warning: unused variable 'max' [-Wunused-variable]
int max,cnt=0;
^
Main.cc:23:1: error: expected '}' at end of input
}
^