| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 146544 | 孔声豪 | 15反转数字 | C++ | Compile Error | 0 MS | 0 KB | 182 | 2026-01-29 12:14:58 |
#include <iostream> using namespace std; int main() { int n f=0; cin>>n; while(n!=0){ f=n*10; n/=10; } cout<<f<<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=n*10;
^
Main.cc:11:11: error: 'f' was not declared in this scope
cout<