shoes.cpp: In function 'long long int count_swaps(std::vector<int>)':
shoes.cpp:21:17: error: 'queue' was not declared in this scope
21 | map<int,queue<int>>q;
| ^~~~~
shoes.cpp:21:9: error: 'map' was not declared in this scope
21 | map<int,queue<int>>q;
| ^~~
shoes.cpp:21:13: error: expected primary-expression before 'int'
21 | map<int,queue<int>>q;
| ^~~
shoes.cpp:22:9: error: 'vector' was not declared in this scope
22 | vector<int>tan(n);
| ^~~~~~
shoes.cpp:22:9: note: suggested alternatives:
In file included from /usr/include/c++/11/vector:67,
from shoes.h:5,
from shoes.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:389:11: note: 'std::vector'
389 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
In file included from shoes.h:5,
from shoes.cpp:1:
/usr/include/c++/11/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
shoes.cpp:22:16: error: expected primary-expression before 'int'
22 | vector<int>tan(n);
| ^~~
shoes.cpp:24:30: error: 'q' was not declared in this scope
24 | for(int i=0;i<n;i++) q[s[i]].push(i);
| ^
shoes.cpp:25:26: error: 'q' was not declared in this scope
25 | for(auto [x,pos]:q){
| ^
shoes.cpp:32:25: error: 'tan' was not declared in this scope
32 | tan[cur]=cnt;
| ^~~
shoes.cpp:41:19: error: 'tan' was not declared in this scope
41 | ans+=seek(tan[i]);
| ^~~