0_0_35726073_28609.cpp:7:12: error: declaration of 'dir' as multidimensional array must have bounds for all dimensions except the first
int dir [][] = {
^
0_0_35726073_28609.cpp: In function 'void BFS(int, int)':
0_0_35726073_28609.cpp:27:12: error: cannot convert 'std::queue<_Tp, _Sequence>::empty<node, std::deque<node, std::allocator<node> > >' from type 'bool (std::queue<node>::)() const' to type 'bool'
while (!q.empty) {
^
0_0_35726073_28609.cpp:27:12: error: in argument to unary !
0_0_35726073_28609.cpp:32:23: error: 'dir' was not declared in this scope
next.x = start.x + dir[i][0];
^
|