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_17094211_5279.cpp: In function 'bool bfs()':
0_0_17094211_5279.cpp:28:12: error: 'NODE' was not declared in this scope
      queue<NODE>q;
            ^
0_0_17094211_5279.cpp:28:16: error: template argument 1 is invalid
      queue<NODE>q;
                ^
0_0_17094211_5279.cpp:28:16: error: template argument 2 is invalid
0_0_17094211_5279.cpp:28:18: error: invalid type in declaration before ';' token
      queue<NODE>q;
                  ^
0_0_17094211_5279.cpp:31:8: error: request for member 'push' in 'q', which is of non-class type 'int'
      q.push(no);
        ^
0_0_17094211_5279.cpp:32:15: error: request for member 'empty' in 'q', which is of non-class type 'int'
      while(!q.empty())
               ^
0_0_17094211_5279.cpp:34:15: error: request for member 'front' in 'q', which is of non-class type 'int'
          no=q.front();
               ^
0_0_17094211_5279.cpp:35:12: error: request for member 'pop' in 'q', which is of non-class type 'int'
          q.pop();
            ^
0_0_17094211_5279.cpp:36:14: error: 'i' was not declared in this scope
          for(i=0;i<8;i++)
              ^
0_0_17094211_5279.cpp:49:18: error: 'flag' was not declared in this scope
                  flag=1;
                  ^
0_0_17094211_5279.cpp:54:23: error: request for member 'push' in 'q', which is of non-class type 'int'
                     q.push(ne);
                       ^


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-11-25 19:47:11, Gzip enabled