| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 132522 | 郝王骏程 | 31回文字符串II | C++ | Compile Error | 0 MS | 0 KB | 520 | 2025-10-08 19:23:28 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a; string s; cin>>s; for(int i=2;i<=n;i++){ for(int j=1+i;j<=n;j++){ for(int j=i/2;i>=0;i-- ){ if(s[i]!=s[a-i-1]){ z=1; } } } } return 0; }
Main.cc: In function 'int main()':
Main.cc:15:18: error: 'n' was not declared in this scope
for(int i=2;i<=n;i++){
^
Main.cc:19:13: error: 'z' was not declared in this scope
z=1;
^
Main.cc:17:18: warning: unused variable 'j' [-Wunused-variable]
for(int j=i/2;i>=0;i-- ){
^