| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 82255 | 何思佳 | 31回文字符串 | C++ | Compile Error | 0 MS | 0 KB | 232 | 2024-07-13 10:02:55 |
#include<bits/stdc++.h> using namespace std; int main() { string a; getline(cin,a); int len=s.size(); for(int i=0;i<len/2;i++){ if(s[i]==s[len-1-i]){ cout<<"no"; return 0; } } cout<<"yes"; return 0; }
Main.cc: In function 'int main()':
Main.cc:7:10: error: 's' was not declared in this scope
int len=s.size();
^