| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 134371 | whs | 04四位数移位 | C++ | Compile Error | 0 MS | 0 KB | 160 | 2025-10-27 16:23:46 |
#include <iostream> using namespace std; int main(){ int >>a>>b>>c>>d; scanf("%1d,%1d,%1d,%1d",&a,&b,&c,&d); cout<<a<<" "<<b<<" "<<c<<" "<<d; }
Main.cc: In function 'int main()':
Main.cc:4:7: error: expected unqualified-id before '>>' token
int >>a>>b>>c>>d;
^
Main.cc:5:30: error: 'a' was not declared in this scope
scanf("%1d,%1d,%1d,%1d",&a,&b,&c,&d);
^
Main.cc:5:33: error: 'b' was not declared in this scope
scanf("%1d,%1d,%1d,%1d",&a,&b,&c,&d);
^
Main.cc:5:36: error: 'c' was not declared in this scope
scanf("%1d,%1d,%1d,%1d",&a,&b,&c,&d);
^
Main.cc:5:39: error: 'd' was not declared in this scope
scanf("%1d,%1d,%1d,%1d",&a,&b,&c,&d);
^