shoes.cpp: In function 'long long int count_swaps(std::vector<int>)':
shoes.cpp:18:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
18 | for (int i = 0; i < a.size(); i += 2)
| ~~^~~~~~~~~~
shoes.cpp:21:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | for (int j = i; j < a.size(); j++)
| ~~^~~~~~~~~~
shoes.cpp:16:9: warning: unused variable 'n' [-Wunused-variable]
16 | int n = a.size() / 2;
| ^
shoes.cpp:20:13: warning: 'p' may be used uninitialized in this function [-Wmaybe-uninitialized]
20 | int p;
| ^