运行 ID | 作者 | 题号 | 测评结果 | 分数 | 时间 | 内存 | 语言 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
635900 | qwerwzx0828 | 1000 - A+B 问题 | 编译错误 | 0 | 0 MS | 0 KB | C++ | 107 | 26天前 |
Main.cc: In function 'int main()':
Main.cc:2:20: error: 'scanf' was not declared in this scope
2 | int a, b = scanf("%d%d", &a, &b);
| ^~~~~
Main.cc:4:17: error: 'printf' was not declared in this scope
4 | printf("%d", a + b);
| ^~~~~~
Main.cc:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
+++ |+#include <cstdio>
1 | int main() {