Problem mate
User PlayVoltz
Submission Time 2023-10-20 21:45:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mate.cpp: In function ‘int main()’:
mate.cpp:31:27: error: no matching function for call to ‘std::queue<std::pair<int, int> >::push(std::pair<int, std::pair<int, int> >)’
31 | q.push(mp(0, mp(i, j)));
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from mate.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:259:7: note: candidate: ‘void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::value_type = std::pair<int, int>]’
259 | push(const value_type& __x)
| ^~~~
/usr/include/c++/9/bits/stl_queue.h:259:30: note: no known conversion for argument 1 from ‘std::pair<int, std::pair<int, int&g