foo.cc: In function 'int main()':
foo.cc:40:19: error: 'INT_MAX' was not declared in this scope
40 | dist[i] = INT_MAX;
| ^~~~~~~
foo.cc:4:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
3 | #include <algorithm>
+++ |+#include <climits>
4 | using namespace std;
foo.cc:52:40: error: 'INT_MAX' was not declared in this scope
52 | int left = 0, right = 0, minTime = INT_MAX;
| ^~~~~~~
foo.cc:52:40: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
[Hydro](https://hydro.ac)提供评测服务