shoes.cpp: In function 'll countSwapsAndSort(std::vector<int>&)':
shoes.cpp:14:48: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | #define FORB(var,lb,ub) for (int var = lb; var < ub; var++)
......
42 | FORB(i, m, s.size()) {
| ~~~~~~~~~~~~~~
shoes.cpp:42:5: note: in expansion of macro 'FORB'
42 | FORB(i, m, s.size()) {
| ^~~~
shoes.cpp:55:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
55 | while (iLeft < left.size() && iRight < right.size()) {
| ~~~~~~^~~~~~~~~~~~~
shoes.cpp:55:42: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
55 | while (iLeft < left.size() && iRight < right.size()) {
| ~~~~~~~^~~~~~~~~~~~~~
shoes.cpp:14:48: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | #define FORB(var,lb,ub) for (int var = lb; var < ub; var++)
......
64 | FORB(i, iLeft, left.size()) s.push_back(left[i]);
| ~~~~~~~~~~~~~~~~~~~~~
shoes.cpp:64:5: note: in expansion of macro 'FORB'
64 | FORB(i, iLeft, left.size()) s.push_back(left[i]);
| ^~~~
shoes.cpp:14:48: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | #define FORB(var,lb,ub) for (int var = lb; var < ub; var++)
......
65 | FORB(i, iRight, right.size()) s.push_back(right[i]);
| ~~~~~~~~~~~~~~~~~~~~~~~
shoes.cpp:65:5: note: in expansion of macro 'FORB'
65 | FORB(i, iRight, right.size()) s.push_back(right[i]);
| ^~~~
shoes.cpp: In function 'll count_swaps(std::vector<int>)':
shoes.cpp:13:45: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
13 | #define FOR(var,bound) for(int var = 0; var < bound; var++)
......
106 | FOR(i, s.size()) {
| ~~~~~~~~~~~
shoes.cpp:106:5: note: in expansion of macro 'FOR'
106 | FOR(i, s.size()) {
| ^~~