F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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];
                       ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-09-30 09:28:49, Gzip enabled