Problem knightmoves
User Potato3218
Submission Time 2023-07-14 14:25:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

knightmoves.cpp: In function ‘int main()’:
knightmoves.cpp:21:18: error: expected ‘}’ before ‘)’ token
21 | q.push({{a,b});
| ~ ^
knightmoves.cpp:21:18: error: no matching function for call to ‘std::queue<std::pair<std::pair<int, int>, int> >::push(<brace-enclosed initializer list>)’
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from knightmoves.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<std::pair<int, int>, int>; _Sequence = std::deque<std::pair<std::pair<int, int>, int>, std::allocator<std::pair<std::pair<int, int>, int> > >; std::queue<_Tp, _Sequence>::value_type = std::pair<std::pair<int, int>, int>]’
259 | push(const value_typ