| Problem | bestplace |
|---|---|
| User | CHEN115217 |
| Submission Time | 2025-01-13 15:48:03 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
bestplace.cpp: In function ‘int main()’:
bestplace.cpp:19:14: error: ‘INT_MAX’ was not declared in this scope
19 | int best = INT_MAX, ans = 0;
| ^~~~~~~
bestplace.cpp:4:1: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
3 | #include <vector>
+++ |+#include <climits>
4 | using namespace std;
bestplace.cpp:28:7: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
28 | ans = i;
| ^~~
| abs
bestplace.cpp:44:11: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
44 | cout << ans << " " << 0;
| ^~~
| abs