shoes.cpp: In function 'long long int count_swaps(std::vector<int>)':
shoes.cpp:12:9: error: 'n' was not declared in this scope
12 | n = s.size()/2;
| ^
shoes.cpp:22:13: error: 'adj' was not declared in this scope
22 | adj[abs(s[i])][0].pb(i);
| ^~~
shoes.cpp:24:14: error: 'adj' was not declared in this scope
24 | else adj[s[i]][1].pb(i);
| ^~~
shoes.cpp:31:13: error: cannot convert 'std::pair<const long long int, long long int>' to 'long long int' in assignment
31 | k = x;
| ^
| |
| std::pair<const long long int, long long int>
shoes.cpp:32:27: error: 'adj' was not declared in this scope
32 | for(ll i = 0; i < adj[x][0]; i++){
| ^~~
shoes.cpp:44:1: warning: control reaches end of non-void function [-Wreturn-type]
44 | }
| ^