| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 67908 | 揭伟琦 | 04四位数移位 | C++ | Compile Error | 0 MS | 0 KB | 168 | 2024-03-17 15:45:29 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin >>n; a=n/10; b=n/10/10; c=n/100/10; d=n/1000/10; cout <<a<<d<<c<<b; return 0; }
Main.cc: In function 'int main()': Main.cc:6:2: error: 'a' was not declared in this scope a=n/10; ^ Main.cc:7:2: error: 'b' was not declared in this scope b=n/10/10; ^ Main.cc:8:2: error: 'c' was not declared in this scope c=n/100/10; ^ Main.cc:9:2: error: 'd' was not declared in this scope d=n/1000/10; ^