fish.cpp: In function 'std::vector<std::vector<long int> > solve(std::vector<std::vector<int> >&, std::vector<std::vector<std::array<int, 2> > >&)':
fish.cpp:13:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
13 | while (k < pos[i - 1].size() && pos[i - 1][k] <= pos[i][j]) {
| ~~^~~~~~~~~~~~~~~~~~~
fish.cpp:15:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::array<int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
15 | while (l < w[i - 1].size() && w[i - 1][l][0] <= pos[i - 1][k]) l++;
| ~~^~~~~~~~~~~~~~~~~
fish.cpp:20:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::array<int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
20 | while (r < w[i - 1].size() && w[i - 1][r][0] <= pos[i][j]) mx += w[i - 1][r++][1];
| ~~^~~~~~~~~~~~~~~~~
fish.cpp: At global scope:
fish.cpp:26:9: error: ambiguating new declaration of 'int64_t max_weights(int, int, std::vector<int>, std::vector<int>, std::vector<int>)'
26 | int64_t max_weights(int N, int M, vector<int> X, vector<int> Y, vector<int> W) {
| ^~~~~~~~~~~
In file included from fish.cpp:1:
fish.h:3:11: note: old declaration 'long long int max_weights(int, int, std::vector<int>, std::vector<int>, std::vector<int>)'
3 | long long max_weights(int N, int M, std::vector<int> X, std::vector<int> Y,
| ^~~~~~~~~~~
fish.cpp: In function 'int64_t max_weights(int, int, std::vector<int>, std::vector<int>, std::vector<int>)':
fish.cpp:48:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
48 | for (int j = 0; j < pos[i + 1].size(); j++) {
| ~~^~~~~~~~~~~~~~~~~~~