运行 ID 作者 题号 测评结果 分数 时间 内存 语言 代码长度 提交时间
597580 zwy666 1021 - 听礼炮 编译错误 0 0 MS 0 KB C++ 306 5个月前
暂时无法获取本题测试点详情。

Main.cc: In function 'int main()':
Main.cc:21:9: error: 'cout' was not declared in this scope
21 | cout << sum << endl;
| ^~~~
Main.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
+++ |+#include <iostream>
1 | using namespace std;
Main.cc:21:24: error: 'endl' was not declared in this scope
21 | cout << sum << endl;
| ^~~~
Main.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
+++ |+#include <ostream>
1 | using namespace std;