| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 134417 | 刘卫东 | 04四位数移位 | C++ | Compile Error | 0 MS | 0 KB | 151 | 2025-10-27 16:32:38 |
#include <iostream> using namespace std; int main(){ int a,b,c,d; scanf("%1d%1d%1d%1d",&a,&b,&c,&d); cout<<d<<c<<b<<a;+666666666666666 }
Main.cc: In function 'int main()':
Main.cc:8:1: error: expected ';' before '}' token
}
^
Main.cc:8:1: warning: statement has no effect [-Wunused-value]
Main.cc:5:35: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%1d%1d%1d%1d",&a,&b,&c,&d);
^