| Problem | knightmoves |
|---|---|
| User | j0ashhh |
| Submission Time | 2026-02-20 17:00:04 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
knightmoves.cpp: In function ‘int main()’:
knightmoves.cpp:37:23: error: no matching function for call to ‘std::queue<std::tuple<int, int, int> >::push(int&, int&, std::tuple_element<0, std::tuple<int> >::type)’
37 | q.push(nx, ny, w+1);
| ^
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::tuple<int, int, int>; _Sequence = std::deque<std::tuple<int, int, int>, std::allocator<std::tuple<int, int, int> > >; std::queue<_Tp, _Sequence>::value_type = std::tuple<int, int, int>]’
259 | push(const value_type& __x)
| ^~~~
/usr/include/c++/9/bits/stl_queue.h:259:7: note: candidate expects 1