foo.cc:6:14: error: 'INT_MAX' was not declared in this scope
6 | int m, n,ans=INT_MAX;
| ^~~~~~~
foo.cc:3:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
2 | #include<vector>
+++ |+#include <climits>
3 | using namespace std;
foo.cc: In function 'int main()':
foo.cc:36:20: error: 'INT_MAX' was not declared in this scope
36 | if (ans != INT_MAX)
| ^~~~~~~
foo.cc:36:20: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
[Hydro](https://hydro.ac)提供评测服务