swaps.cpp: In function 'void solve(int, int)':
swaps.cpp:26:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
26 | for (int i = 1; i < ord.size(); i += 2) {
| ~~^~~~~~~~~~~~
swaps.cpp:31:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | for (int i = 1; i < ord.size(); i += 2)
| ~~^~~~~~~~~~~~
swaps.cpp:32:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
32 | for (int j = 0; j != ord[i].size(); ++j) {
| ~~^~~~~~~~~~~~~~~~
swaps.cpp:37:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
37 | for (int i = 1; i < ord.size(); i += 2)
| ~~^~~~~~~~~~~~
swaps.cpp:38:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | for (int j = 0; j != ord[i].size(); ++j) {
| ~~^~~~~~~~~~~~~~~~
swaps.cpp:45:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
45 | for (int i = 1; i < ord.size(); i += 2) {
| ~~^~~~~~~~~~~~
swaps.cpp:48:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
48 | while (p < ord[i - 1].size() || q < ord[i].size())
| ~~^~~~~~~~~~~~~~~~~~~
swaps.cpp:48:38: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
48 | while (p < ord[i - 1].size() || q < ord[i].size())
| ~~^~~~~~~~~~~~~~~
swaps.cpp:49:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
49 | if (q < ord[i].size() && low[i][q] <= p) nw.push_back(ord[i][q++]);
| ~~^~~~~~~~~~~~~~~