segments.cpp: In function 'int check(int, std::vector<int>&, std::vector<int>&)':
segments.cpp:10:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
10 | for(int i = indx;i < v.size();++i){
| ~~^~~~~~~~~~
segments.cpp:13:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
13 | if(i != v.size() - 1 && suff[i + 1] < temp){
| ~~^~~~~~~~~~~~~~~
segments.cpp: In function 'int main()':
segments.cpp:33:9: warning: unused variable 'l' [-Wunused-variable]
33 | int l = 1, r = 1e9, Mx = 0;
| ^
segments.cpp:33:16: warning: unused variable 'r' [-Wunused-variable]
33 | int l = 1, r = 1e9, Mx = 0;
| ^