bitaro.cpp: In function 'int main()':
bitaro.cpp:28:32: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
28 | while (v.size() < sq && (pi < best[i].size() || pj < best[j].size()))
| ~~~^~~~~~~~~~~~~~~~
bitaro.cpp:28:55: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
28 | while (v.size() < sq && (pi < best[i].size() || pj < best[j].size()))
| ~~~^~~~~~~~~~~~~~~~
bitaro.cpp:30:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
30 | while (pi < best[i].size() && bad[best[i][pi].second]) pi++;
| ~~~^~~~~~~~~~~~~~~~
bitaro.cpp:31:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | while (pj < best[j].size() && bad[best[j][pj].second]) pj++;
| ~~~^~~~~~~~~~~~~~~~
bitaro.cpp:32:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
32 | if (pi < best[i].size() && (pj == best[j].size() || best[i][pi].first > best[j][pj].first))
| ~~~^~~~~~~~~~~~~~~~
bitaro.cpp:32:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
32 | if (pi < best[i].size() && (pj == best[j].size() || best[i][pi].first > best[j][pj].first))
| ~~~^~~~~~~~~~~~~~~~~
bitaro.cpp:34:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
34 | else if (pj < best[j].size())
| ~~~^~~~~~~~~~~~~~~~
bitaro.cpp:64:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
64 | for (int i = 0; i < best[u].size(); i++) if (!bad[best[u][i].second])
| ~~^~~~~~~~~~~~~~~~