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:38:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | for (int i = 1; i < ord.size(); i += 2)
| ~~^~~~~~~~~~~~
swaps.cpp:39:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
39 | for (int j = 0; j != ord[i].size(); ++j) {
| ~~^~~~~~~~~~~~~~~~
swaps.cpp:47:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
47 | for (int i = 1; i < ord.size(); i += 2) {
| ~~^~~~~~~~~~~~
swaps.cpp:50:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
50 | while (p < ord[i - 1].size() || q < ord[i].size())
| ~~^~~~~~~~~~~~~~~~~~~
swaps.cpp:50:38: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
50 | while (p < ord[i - 1].size() || q < ord[i].size())
| ~~^~~~~~~~~~~~~~~
swaps.cpp:51:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
51 | if (q < ord[i].size() && low[i][q] <= p) nw.push_back(ord[i][q++]);
| ~~^~~~~~~~~~~~~~~