| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 146546 | 孔声豪 | 15反转数字 | C++ | Compile Error | 0 MS | 0 KB | 187 | 2026-01-29 12:16:36 |
#include <iostream> using namespace std; int main() { int n f=0; cin>>n; while(n!=0){ f=f*10+n%10; n/=10; } cout<<n<<endl; return 0; }
Main.cc: In function 'int main()':
Main.cc:5:10: error: expected initializer before 'f'
int n f=0;
^
Main.cc:6:9: error: 'n' was not declared in this scope
cin>>n;
^
Main.cc:8:8: error: 'f' was not declared in this scope
f=f*10+n%10;
^