运行 ID 作者 题号 测评结果 分数 时间 内存 语言 代码长度 提交时间
425170 vki2019 1046 - 守护长方形 编译错误 0 0 MS 0 KB C++ 921 1年前
暂时无法获取本题测试点详情。

Main.cc: In function ‘int main()’:
Main.cc:5:5: error: ‘cin’ was not declared in this scope
5 | cin >> n >> m;
| ^~~
Main.cc:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
Main.cc:25:30: error: ‘min’ was not declared in this scope; did you mean ‘main’?
25 | for (int len = 1; len <= min(n, m); len++) {
| ^~~
| main
Main.cc:29:5: error: ‘cout’ was not declared in this scope
29 | cout << ans_s << " " << ans_l << endl;
| ^~~~
Main.cc:29:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
Main.cc:29:38: error: ‘endl’ was not declared in this scope
29 | cout << ans_s << " " << ans_l << 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;