fish.cpp: In function 'long long int max_weights(int, int, std::vector<int>, std::vector<int>, std::vector<int>)':
fish.cpp:35:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | for(int j=1;j<v[i].size();j++) v[i][j].sc+=v[i][j-1].sc;
| ~^~~~~~~~~~~~
fish.cpp:37:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
37 | for(int i=0;i<v[1].size();i++)
| ~^~~~~~~~~~~~
fish.cpp:40:18: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
40 | while(k+1<v[0].size() && v[1][i].fi>v[0][k+1].fi) k++;
| ~~~^~~~~~~~~~~~
fish.cpp:44:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
44 | for(int i=0;i<v[0].size();i++)
| ~^~~~~~~~~~~~
fish.cpp:47:18: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
47 | while(k+1<v[1].size() && v[0][i].fi>v[1][k+1].fi) k++;
| ~~~^~~~~~~~~~~~
fish.cpp:54:26: warning: comparison of integer expressions of different signedness: 'int' and 'const long unsigned int' [-Wsign-compare]
54 | for(int k=0;k<max(v[i-1].size(),v[i].size());k++) dp[i&1][j][k]=0;
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fish.cpp:56:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
56 | for(int j=0;j<v[i-1].size();j++)
| ~^~~~~~~~~~~~~~
fish.cpp:59:22: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
59 | while(k+1<v[i].size() && v[i-1][j].fi>v[i][k+1].fi) k++;
| ~~~^~~~~~~~~~~~
fish.cpp:63:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
63 | for(int j=0;j<v[i].size();j++)
| ~^~~~~~~~~~~~
fish.cpp:66:20: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
66 | while(k<v[i-2].size() && v[i][j].fi>v[i-2][k].fi)
| ~^~~~~~~~~~~~~~
fish.cpp:68:24: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
68 | while(l<v[i-1].size()-1 && v[i-2][k].fi>v[i-1][l+1].fi) l++;
| ~^~~~~~~~~~~~~~~~
fish.cpp:72:20: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
72 | while(p<v[i-1].size()-1 && v[i][j].fi>v[i-1][p+1].fi) p++;
| ~^~~~~~~~~~~~~~~~
fish.cpp:87:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
87 | for(int j=0;j<v[i].size();j++)
| ~^~~~~~~~~~~~
fish.cpp:90:20: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
90 | while(k<v[i-1].size() && v[i][j].fi>=v[i-1][k].fi)
| ~^~~~~~~~~~~~~~
fish.cpp:95:20: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
95 | while(l<v[i-1].size()-1 && v[i][j].fi > v[i-1][l].fi) l++;
| ~^~~~~~~~~~~~~~~~
fish.cpp:112:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
112 | for(int i=0;i<v[n-2].size();i++) rez=max(rez,dp[(n-1)&1][0][i]);
| ~^~~~~~~~~~~~~~
fish.cpp:115:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
115 | for(int j=0;j<v[n-1].size();j++) rez=max(rez,dp[(n-1)&1][i][j]);
| ~^~~~~~~~~~~~~~