shoes.cpp: In function 'long long int count_swaps(std::vector<int>)':
shoes.cpp:22:13: error: 'deque' was not declared in this scope
22 | map<ll, deque<ll>> mp;
| ^~~~~
shoes.cpp:4:1: note: 'std::deque' is defined in header '<deque>'; did you forget to '#include <deque>'?
3 | #include<ext/pb_ds/assoc_container.hpp>
+++ |+#include <deque>
4 | #include<ext/pb_ds/tree_policy.hpp>
shoes.cpp:22:21: error: template argument 2 is invalid
22 | map<ll, deque<ll>> mp;
| ^~
shoes.cpp:22:21: error: template argument 4 is invalid
shoes.cpp:24:11: error: invalid types 'int[__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}]' for array subscript
24 | mp[a[i]].push_back(i);
| ^
shoes.cpp:37:11: error: invalid types 'int[ll {aka long long int}]' for array subscript
37 | mp[sz].pop_front();
| ^
shoes.cpp:38:22: error: invalid types 'int[ll {aka long long int}]' for array subscript
38 | ll other = mp[-sz].front();
| ^
shoes.cpp:39:11: error: invalid types 'int[ll {aka long long int}]' for array subscript
39 | mp[-sz].pop_front();
| ^