boat.cpp: In function 'int main()':
boat.cpp:21:18: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | for(int i=1;i<v1.size();i++)v1[i].ss+=v1[i-1].ss;
| ~^~~~~~~~~~
boat.cpp:31:19: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | if(pos>=v1.size())pos=v1.size()-1;
| ~~~^~~~~~~~~~~
boat.cpp:37:26: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
37 | for(int j=1;j<v1.size();j++){
| ~^~~~~~~~~~