shoes.cpp: In function 'long long int count_swaps(std::vector<int>)':
shoes.cpp:39:7: error: 's' was not declared in this scope
39 | n=s.size();
| ^
shoes.cpp:46:21: error: request for member 'size' in 'a.std::vector<int>::operator[](((std::vector<int>::size_type)x))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
46 | if(a[x].size()){
| ^~~~
shoes.cpp:47:31: error: request for member 'back' in 'a.std::vector<int>::operator[](((std::vector<int>::size_type)x))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
47 | ans+=i+1-a[x].back()-1-get(a[x].back());
| ^~~~
shoes.cpp:47:49: error: request for member 'back' in 'a.std::vector<int>::operator[](((std::vector<int>::size_type)x))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
47 | ans+=i+1-a[x].back()-1-get(a[x].back());
| ^~~~
shoes.cpp:48:26: error: request for member 'back' in 'a.std::vector<int>::operator[](((std::vector<int>::size_type)x))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
48 | upd(a[x].back(), i+1);
| ^~~~
shoes.cpp:49:22: error: request for member 'pop_back' in 'a.std::vector<int>::operator[](((std::vector<int>::size_type)x))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
49 | a[x].pop_back();
| ^~~~~~~~
shoes.cpp:3:12: error: request for member 'push_back' in 'b.std::vector<int>::operator[](((std::vector<int>::size_type)x))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
3 | #define pb push_back
| ^~~~~~~~~
shoes.cpp:51:23: note: in expansion of macro 'pb'
51 | else b[x].pb(i+1);
| ^~
shoes.cpp:55:21: error: request for member 'size' in 'b.std::vector<int>::operator[](((std::vector<int>::size_type)x))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
55 | if(b[x].size()){
| ^~~~
shoes.cpp:56:31: error: request for member 'back' in 'b.std::vector<int>::operator[](((std::vector<int>::size_type)x))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
56 | ans+=i+1-b[x].back()-get(b[x].back());
| ^~~~
shoes.cpp:56:47: error: request for member 'back' in 'b.std::vector<int>::operator[](((std::vector<int>::size_type)x))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
56 | ans+=i+1-b[x].back()-get(b[x].back());
| ^~~~
shoes.cpp:57:26: error: request for member 'back' in 'b.std::vector<int>::operator[](((std::vector<int>::size_type)x))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
57 | upd(b[x].back(), i+1);
| ^~~~
shoes.cpp:58:22: error: request for member 'pop_back' in 'b.std::vector<int>::operator[](((std::vector<int>::size_type)x))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
58 | b[x].pop_back();
| ^~~~~~~~
shoes.cpp:3:12: error: request for member 'push_back' in 'a.std::vector<int>::operator[](((std::vector<int>::size_type)x))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
3 | #define pb push_back
| ^~~~~~~~~
shoes.cpp:60:23: note: in expansion of macro 'pb'
60 | else a[x].pb(i+1);
| ^~