| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 141599 | 罗晟睿 | 回文数 | C++ | Compile Error | 0 MS | 0 KB | 212 | 2025-12-27 14:48:49 |
#include<bits/stdc++.h> using namespace std; int main() { int n,m; cin>>n; if(while (n!=0){m=m*10+n%10; n=n/10;} ){ cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } return 0; }
Main.cc: In function 'int main()':
Main.cc:6:8: error: expected primary-expression before 'while'
if(while (n!=0){m=m*10+n%10; n=n/10;} ){
^
Main.cc:6:8: error: expected ')' before 'while'
Main.cc:4:11: warning: unused variable 'm' [-Wunused-variable]
int n,m;
^