| Problem | knightmoves |
|---|---|
| User | j0ashhh |
| Submission Time | 2026-02-20 16:59:16 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
knightmoves.cpp: In function ‘int main()’:
knightmoves.cpp:33:21: error: invalid types ‘int[int]’ for array subscript
33 | int dx = x + dx[i];
| ^
knightmoves.cpp:34:21: error: invalid types ‘int[int]’ for array subscript
34 | int dy = y + dy[i];
| ^
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(dx, dy, 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, i