fish.cpp: In function 'int64_t max_weights(int32_t, int32_t, std::vector<int>, std::vector<int>, std::vector<int>)':
fish.cpp:34:20: warning: comparison of integer expressions of different signedness: 'int64_t' {aka 'long int'} and 'std::vector<std::array<long int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
34 | for (int i = 0; i <= f[0].size(); i++)
| ~~^~~~~~~~~~~~~~
fish.cpp:45:21: warning: comparison of integer expressions of different signedness: 'int64_t' {aka 'long int'} and 'std::vector<std::array<long int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
45 | for (int j = 0; j < f[i].size(); j++) // Current level
| ~~^~~~~~~~~~~~~
fish.cpp:49:13: warning: comparison of integer expressions of different signedness: 'int64_t' {aka 'long int'} and 'std::vector<std::array<long int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
49 | while (k < f[i-1].size() && f[i][j][0] > f[i-1][k][0])
| ~~^~~~~~~~~~~~~~~
fish.cpp:61:10: warning: comparison of integer expressions of different signedness: 'int64_t' {aka 'long int'} and 'std::vector<std::array<long int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
61 | if (j < f[i].size())
| ~~^~~~~~~~~~~~~
fish.cpp:63:24: warning: comparison of integer expressions of different signedness: 'int64_t' {aka 'long int'} and 'std::vector<std::array<long int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
63 | while (k >= 0 && (k == f[i-1].size() || (j != f[i].size() && f[i-1][k][0] > f[i][j][0])))
| ~~^~~~~~~~~~~~~~~~
fish.cpp:63:47: warning: comparison of integer expressions of different signedness: 'int64_t' {aka 'long int'} and 'std::vector<std::array<long int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
63 | while (k >= 0 && (k == f[i-1].size() || (j != f[i].size() && f[i-1][k][0] > f[i][j][0])))
| ~~^~~~~~~~~~~~~~
fish.cpp:68:10: warning: comparison of integer expressions of different signedness: 'int64_t' {aka 'long int'} and 'std::vector<std::array<long int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
68 | if (j < f[i].size())
| ~~^~~~~~~~~~~~~
fish.cpp:76:21: warning: comparison of integer expressions of different signedness: 'int64_t' {aka 'long int'} and 'std::vector<std::array<long int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
76 | for (int j = 0; j <= f[i].size(); j++)
| ~~^~~~~~~~~~~~~~
fish.cpp:78:13: warning: comparison of integer expressions of different signedness: 'int64_t' {aka 'long int'} and 'std::vector<std::array<long int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
78 | while (k < f[i-1].size() && (j == f[i].size() || f[i-1][k][0] < f[i][j][0]))
| ~~^~~~~~~~~~~~~~~
fish.cpp:78:35: warning: comparison of integer expressions of different signedness: 'int64_t' {aka 'long int'} and 'std::vector<std::array<long int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
78 | while (k < f[i-1].size() && (j == f[i].size() || f[i-1][k][0] < f[i][j][0]))
| ~~^~~~~~~~~~~~~~
fish.cpp:89:19: error: 'rj' was not declared in this scope; did you mean 'j'?
89 | for (int j = 0; rj < f[i-1].size(); j++)
| ^~
| j
fish.cpp:93:10: warning: comparison of integer expressions of different signedness: 'int64_t' {aka 'long int'} and 'std::vector<std::array<long int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
93 | if (j < f[i].size())
| ~~^~~~~~~~~~~~~
fish.cpp:95:23: warning: comparison of integer expressions of different signedness: 'int64_t' {aka 'long int'} and 'std::vector<std::array<long int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
95 | while (k > 0 && (k == f[i-1].size() || f[i-1][k][0] > f[i-1][j][0]))
| ~~^~~~~~~~~~~~~~~~
fish.cpp:106:21: warning: comparison of integer expressions of different signedness: 'int64_t' {aka 'long int'} and 'std::vector<std::array<long int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
106 | for (int j = 0; j <= f[i].size(); j++)
| ~~^~~~~~~~~~~~~~
fish.cpp:109:13: warning: comparison of integer expressions of different signedness: 'int64_t' {aka 'long int'} and 'std::vector<std::array<long int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
109 | while (k < f[i-1].size() && (j == f[i].size() || f[i-1][k][0] < f[i][j][0]))
| ~~^~~~~~~~~~~~~~~
fish.cpp:109:35: warning: comparison of integer expressions of different signedness: 'int64_t' {aka 'long int'} and 'std::vector<std::array<long int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
109 | while (k < f[i-1].size() && (j == f[i].size() || f[i-1][k][0] < f[i][j][0]))
| ~~^~~~~~~~~~~~~~
fish.cpp:119:20: warning: comparison of integer expressions of different signedness: 'int64_t' {aka 'long int'} and 'std::vector<std::array<long int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
119 | for (int i = 0; i < f[n-1].size(); i++)
| ~~^~~~~~~~~~~~~~~