| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 75979 | 任星宇 | 04四位数移位 | C++ | Compile Error | 0 MS | 0 KB | 141 | 2024-06-01 11:58:19 |
# include<iostream> using namespace std; int main() { int a; scanf("%3d",&a); scanf("%1d",&b); cout<<a<<endl; return 0; }
Main.cc: In function 'int main()':
Main.cc:8:15: error: 'b' was not declared in this scope
scanf("%1d",&b);
^
Main.cc:7:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%3d",&a);
^