Problem knightmoves
User jaylchicken
Submission Time 2025-05-10 19:49:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

knightmoves.cpp: In function ‘int main()’:
knightmoves.cpp:27:5: error: ‘queue’ was not declared in this scope
27 | queue<pair<pair<int, int>, int>> bfs_q;
| ^~~~~
knightmoves.cpp:2:1: note: ‘std::queue’ is defined in header ‘<queue>’; did you forget to ‘#include <queue>’?
1 | #include <iostream>
+++ |+#include <queue>
2 | using namespace std;
knightmoves.cpp:27:35: error: expected primary-expression before ‘>’ token
27 | queue<pair<pair<int, int>, int>> bfs_q;
| ^~
knightmoves.cpp:27:38: error: ‘bfs_q’ was not declared in this scope
27 | queue<pair<pair<int, int>, int>> bfs_q;
| ^~~~~
knightmoves.cpp:29:5: error: ‘vector’ was not declared in this scope
29 | vector<pair<int, int>> next_position_offset;
| ^~~~