shoes.cpp: In function 'long long int count_swaps(std::vector<int>)':
shoes.cpp:27:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
27 | for(int i = 0; i < s.size(); ++i){
| ~~^~~~~~~~~~
shoes.cpp:31:29: error: no match for 'operator=' (operand types are 'std::map<int, std::queue<int> >::mapped_type' {aka 'std::queue<int>'} and '<brace-enclosed initializer list>')
31 | M[s[i]] = {i};
| ^
In file included from /usr/include/c++/10/queue:64,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:86,
from shoes.cpp:2:
/usr/include/c++/10/bits/stl_queue.h:96:11: note: candidate: 'std::queue<int>& std::queue<int>::operator=(const std::queue<int>&)'
96 | class queue
| ^~~~~
/usr/include/c++/10/bits/stl_queue.h:96:11: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::queue<int>&'
/usr/include/c++/10/bits/stl_queue.h:96:11: note: candidate: 'std::queue<int>& std::queue<int>::operator=(std::queue<int>&&)'
/usr/include/c++/10/bits/stl_queue.h:96:11: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::queue<int>&&'
shoes.cpp:34:29: error: no match for 'operator=' (operand types are 'std::map<int, std::queue<int> >::mapped_type' {aka 'std::queue<int>'} and '<brace-enclosed initializer list>')
34 | M[s[i]] = {i};
| ^
In file included from /usr/include/c++/10/queue:64,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:86,
from shoes.cpp:2:
/usr/include/c++/10/bits/stl_queue.h:96:11: note: candidate: 'std::queue<int>& std::queue<int>::operator=(const std::queue<int>&)'
96 | class queue
| ^~~~~
/usr/include/c++/10/bits/stl_queue.h:96:11: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::queue<int>&'
/usr/include/c++/10/bits/stl_queue.h:96:11: note: candidate: 'std::queue<int>& std::queue<int>::operator=(std::queue<int>&&)'
/usr/include/c++/10/bits/stl_queue.h:96:11: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::queue<int>&&'
shoes.cpp:42:29: error: no match for 'operator=' (operand types are 'std::map<int, std::queue<int> >::mapped_type' {aka 'std::queue<int>'} and '<brace-enclosed initializer list>')
42 | M[s[i]] = {i};
| ^
In file included from /usr/include/c++/10/queue:64,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:86,
from shoes.cpp:2:
/usr/include/c++/10/bits/stl_queue.h:96:11: note: candidate: 'std::queue<int>& std::queue<int>::operator=(const std::queue<int>&)'
96 | class queue
| ^~~~~
/usr/include/c++/10/bits/stl_queue.h:96:11: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::queue<int>&'
/usr/include/c++/10/bits/stl_queue.h:96:11: note: candidate: 'std::queue<int>& std::queue<int>::operator=(std::queue<int>&&)'
/usr/include/c++/10/bits/stl_queue.h:96:11: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::queue<int>&&'
shoes.cpp:45:29: error: no match for 'operator=' (operand types are 'std::map<int, std::queue<int> >::mapped_type' {aka 'std::queue<int>'} and '<brace-enclosed initializer list>')
45 | M[s[i]] = {i};
| ^
In file included from /usr/include/c++/10/queue:64,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:86,
from shoes.cpp:2:
/usr/include/c++/10/bits/stl_queue.h:96:11: note: candidate: 'std::queue<int>& std::queue<int>::operator=(const std::queue<int>&)'
96 | class queue
| ^~~~~
/usr/include/c++/10/bits/stl_queue.h:96:11: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::queue<int>&'
/usr/include/c++/10/bits/stl_queue.h:96:11: note: candidate: 'std::queue<int>& std::queue<int>::operator=(std::queue<int>&&)'
/usr/include/c++/10/bits/stl_queue.h:96:11: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::queue<int>&&'