shoes.cpp: In function 'long long int count_swaps(std::vector<int>)':
shoes.cpp:56:26: error: no match for 'operator[]' (operand types are 'std::vector<int>' and 'std::vector<int>')
int loc = locr[ s[i] ][ indr[ s[i] ] ];
^
In file included from /usr/include/c++/7/vector:64:0,
from shoes.h:5,
from shoes.cpp:1:
/usr/include/c++/7/bits/stl_vector.h:795:7: note: candidate: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::reference = int&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]
operator[](size_type __n) _GLIBCXX_NOEXCEPT
^~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:795:7: note: no known conversion for argument 1 from 'std::vector<int>' to 'std::vector<int>::size_type {aka long unsigned int}'
/usr/include/c++/7/bits/stl_vector.h:813:7: note: candidate: std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) const [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::const_reference = const int&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]
operator[](size_type __n) const _GLIBCXX_NOEXCEPT
^~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:813:7: note: no known conversion for argument 1 from 'std::vector<int>' to 'std::vector<int>::size_type {aka long unsigned int}'
shoes.cpp:59:17: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
indr[ s[i] ] ++;
~~~~~~~~~~~~~^~
shoes.cpp:64:26: error: no match for 'operator[]' (operand types are 'std::vector<int>' and 'std::vector<int>')
int loc = locl[ s[i] ][ indl[ s[i] ] ];
^
In file included from /usr/include/c++/7/vector:64:0,
from shoes.h:5,
from shoes.cpp:1:
/usr/include/c++/7/bits/stl_vector.h:795:7: note: candidate: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::reference = int&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]
operator[](size_type __n) _GLIBCXX_NOEXCEPT
^~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:795:7: note: no known conversion for argument 1 from 'std::vector<int>' to 'std::vector<int>::size_type {aka long unsigned int}'
/usr/include/c++/7/bits/stl_vector.h:813:7: note: candidate: std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) const [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::const_reference = const int&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]
operator[](size_type __n) const _GLIBCXX_NOEXCEPT
^~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:813:7: note: no known conversion for argument 1 from 'std::vector<int>' to 'std::vector<int>::size_type {aka long unsigned int}'
shoes.cpp:67:17: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
indl[ s[i] ] ++;
~~~~~~~~~~~~~^~