| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 155176 | 万嘉宇 | 输出回文数 | C++ | Compile Error | 0 MS | 0 KB | 428 | 2026-06-02 19:48:57 |
#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 n,g,s,b,q,w; for(int i=1;i<=n;i++){ g=n%10; s=n%100/10; b=n%1000/100 p=n%10000/1000 w=n/10000 if(g==w&&s==p) cout<<i; } return 0; }
Main.cc: In function 'int main()':
Main.cc:12:5: error: expected ';' before 'p'
p=n%10000/1000
^
Main.cc:7:13: warning: unused variable 'q' [-Wunused-variable]
int n,g,s,b,q,w;
^
Main.cc:7:15: warning: unused variable 'w' [-Wunused-variable]
int n,g,s,b,q,w;
^