foo.cc: In function 'int main()':
foo.cc:35:20: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | for (int i=0; i<p.size(); i++) {
| ~^~~~~~~~~
foo.cc:46:14: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
46 | if(locmax!=p.size()-1) ans2=max(_max-p[locmax+1],ans2);
| ~~~~~~^~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务