shoes.cpp: In function 'll count_swaps(std::vector<int>)':
shoes.cpp:34:9: warning: comparison of integer expressions of different signedness: 'll' {aka 'long long int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
34 | while(N<S.size()) N*=2;
| ~^~~~~~~~~
shoes.cpp:6:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
6 | #define rep(a, b) for(int a = 0; a < (b); ++a)
| ^
shoes.cpp:35:2: note: in expansion of macro 'rep'
35 | rep(i, S.size()) {
| ^~~
shoes.cpp:6:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
6 | #define rep(a, b) for(int a = 0; a < (b); ++a)
| ^
shoes.cpp:42:2: note: in expansion of macro 'rep'
42 | rep(i, S.size()) if(tr[N+i]) {
| ^~~