| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 157430 | wxl20111214 | A+B 输入输出练习I | C++ | Compile Error | 0 MS | 0 KB | 139 | 2026-07-23 20:40:46 |
#include<iostream> int main() { int a,b; while(scanf("%d%d",a,b)==2) { printf("%d\n",a+b) } return 0; }
Main.cc: In function 'int main()':
Main.cc:4:27: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
while(scanf("%d%d",a,b)==2)
^
Main.cc:4:27: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'int' [-Wformat=]
Main.cc:7:5: error: expected ';' before '}' token
}
^