shoes.cpp: In function 'int count_swaps(std::vector<int>)':
shoes.cpp:32:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
32 | for (int i = 0;i < vc.size();i++){
| ~~^~~~~~~~~~~
shoes.cpp:34:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
34 | for (int j = i;j < vc.size();j++){
| ~~^~~~~~~~~~~
shoes.cpp:36:6: error: 'ans' was not declared in this scope; did you mean 'abs'?
36 | ans += (j - i);
| ^~~
| abs
shoes.cpp:40:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
40 | for (int j = i;j < vc.size();j++){
| ~~^~~~~~~~~~~
shoes.cpp:42:6: error: 'ans' was not declared in this scope; did you mean 'abs'?
42 | ans += (j-i);
| ^~~
| abs
shoes.cpp:47:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
47 | return ans;
| ^~~
| abs