foo.cc:9:9: error: 'INT_MAX' was not declared in this scope
9 | int ans=INT_MAX;
| ^~~~~~~
foo.cc:7:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
6 | #include <string.h>
+++ |+#include <climits>
7 | using namespace std;
foo.cc: In function 'int main()':
foo.cc:57:10: error: 'INT_MAX' was not declared in this scope
57 | if(ans==INT_MAX)
| ^~~~~~~
foo.cc:57:10: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
[Hydro](https://hydro.ac)提供评测服务