Problem bestplace
User CHEN115217
Submission Time 2025-01-13 15:56:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bestplace.cpp: In function ‘int main()’:
bestplace.cpp:11:14: error: ‘INT_MAX’ was not declared in this scope
11 | int best = INT_MAX, ans = 0;
| ^~~~~~~
bestplace.cpp:2:1: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
1 | #include <iostream>
+++ |+#include <climits>
2 | using namespace std;
bestplace.cpp:20:7: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
20 | ans = i;
| ^~~
| abs
bestplace.cpp:24:11: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
24 | cout << ans << " " << 0 << endl;
| ^~~
| abs