| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 155177 | 万嘉宇 | 输出回文数 | C++ | Compile Error | 0 MS | 0 KB | 431 | 2026-06-02 19:50:08 |
#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: 'p' was not declared in this scope
p=n%10000/1000;
^
Main.cc:7:13: warning: unused variable 'q' [-Wunused-variable]
int n,g,s,b,q,w;
^