shoes.cpp: In function 'long long int count_swaps(std::vector<int>)':
shoes.cpp:14:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | for(int i = 0; i < s.size(); ++i){
| ~~^~~~~~~~~~
shoes.cpp:21:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | for(int i = 0; i < s.size(); ++i){
| ~~^~~~~~~~~~
shoes.cpp:11:6: warning: unused variable 'cl' [-Wunused-variable]
11 | int cl = 0, cr = 0;
| ^~
shoes.cpp:11:14: warning: unused variable 'cr' [-Wunused-variable]
11 | int cl = 0, cr = 0;
| ^~
shoes.cpp:58:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
58 | for(int i = 0; i < s.size(); i += 2){
| ~~^~~~~~~~~~
shoes.cpp:62:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
62 | for(int j = i+1; j < s.size(); ++j){
| ~~^~~~~~~~~~
shoes.cpp:83:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
83 | for(int j = i+1; j < s.size(); ++j){
| ~~^~~~~~~~~~