shoes.cpp: In function 'void update(int, int)':
shoes.cpp:8:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=ind; i<=s.size(); i+=i&(-i))
~^~~~~~~~~~
shoes.cpp: In function 'void count_swaps(std::vector<int>)':
shoes.cpp:19:16: error: 'n' was not declared in this scope
noneg=100002; n=s.size();
^
shoes.cpp:20:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(k=0; k<s.size(); k++){
~^~~~~~~~~
shoes.cpp:21:2: error: 'a' was not declared in this scope
a[k+1]=s[k]; }
^
shoes.cpp:25:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(k=1; k<=s.size(); k++) {
~^~~~~~~~~~
shoes.cpp:26:8: error: 'a' was not declared in this scope
if(q[a[k]+noneg].size()>0) {
^