shoes.cpp:38:24: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Alloc> class std::vector'
38 | ll count_swaps(vector<l> s) {
| ^
shoes.cpp:38:24: note: expected a type, got 'l'
shoes.cpp:38:24: error: template argument 2 is invalid
shoes.cpp: In function 'll count_swaps(int)':
shoes.cpp:39:26: error: request for member 'size' in 's', which is of non-class type 'int'
39 | for(int i = 0; i < s.size(); i++) {
| ^~~~
shoes.cpp:40:13: error: invalid types 'int[int]' for array subscript
40 | if(s[i] < 0) {
| ^
shoes.cpp:41:17: error: invalid types 'int[int]' for array subscript
41 | l[-s[i]].push_back(i + 1);
| ^
shoes.cpp:43:16: error: invalid types 'int[int]' for array subscript
43 | r[s[i]].push_back(i + 1);
| ^
shoes.cpp:46:14: error: request for member 'size' in 's', which is of non-class type 'int'
46 | ll n = s.size() / 2;
| ^~~~
shoes.cpp:55:21: error: request for member 'size' in 's', which is of non-class type 'int'
55 | BIT bit = BIT(s.size() + 1);
| ^~~~
shoes.cpp:60:55: error: request for member 'size' in 's', which is of non-class type 'int'
60 | ll sus = d[i][j] + bit.get(d[i][j] + 1, s.size());
| ^~~~