shoes.cpp: In function 'long long int count_swaps(std::vector<int>)':
shoes.cpp:25:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
25 | for(int i = 0 ; i < s.size() ; i++){
| ~~^~~~~~~~~~
shoes.cpp:29:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
29 | for(int j = l+1 ; j < s.size() ; j++){
| ~~^~~~~~~~~~
shoes.cpp:35:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | for(int j = r ; j < s.size() ; j++){
| ~~^~~~~~~~~~
shoes.cpp:45:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
45 | for(int j = r+1 ; j < s.size() ; j++){
| ~~^~~~~~~~~~
shoes.cpp:51:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
51 | for(int j = l ; j < s.size() ; j++){
| ~~^~~~~~~~~~
shoes.cpp:27:12: warning: 'l' may be used uninitialized in this function [-Wmaybe-uninitialized]
27 | ans += r-l-1;
| ~^~