shoes.cpp: In function 'long long int count_swaps(std::vector<int>)':
shoes.cpp:9:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
9 | for(i=0;i<s.size();i++)
| ~^~~~~~~~~
shoes.cpp:19:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
19 | for(cnt=i=0;i<s.size();i++)
| ~^~~~~~~~~
shoes.cpp:31:27: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
31 | for(i=0;i++<n;)if(!B[i])for(;;);
| ^~~
shoes.cpp:32:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
32 | for(i=0;i++<n;)
| ^~~