/in/foo.cc: In function 'int countmaxs(std::vector<int>&)':
/in/foo.cc:17:16: error: 'INT_MAX' was not declared in this scope
17 | int max = -INT_MAX;
| ^~~~~~~
/in/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;
/in/foo.cc:18:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
18 | for (i = 0; i < arr.size(); i++)
| ~~^~~~~~~~~~~~