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