| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 66560 | 周奕辰 | 04四位数移位 | C++ | Compile Error | 0 MS | 0 KB | 153 | 2024-03-09 14:19:00 |
#include <iostream> #include <cstdio> using namespace ; int main(){ int a,b; scanf("%3d%1d",a,b); printf("%d%d",b,a); return 0; }
Main.cc:3:17: error: expected identifier before ';' token
using namespace ;
^
Main.cc: In function 'int main()':
Main.cc:6:23: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
scanf("%3d%1d",a,b);
^
Main.cc:6:23: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'int' [-Wformat=]
Main.cc:6:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%3d%1d",a,b);
^