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_38209655_20552.cpp:14:7: error: 'node' was not declared in this scope
 queue<node>q;
       ^
0_0_38209655_20552.cpp:14:11: error: template argument 1 is invalid
 queue<node>q;
           ^
0_0_38209655_20552.cpp:14:11: error: template argument 2 is invalid
0_0_38209655_20552.cpp:14:13: error: invalid type in declaration before ';' token
 queue<node>q;
             ^
0_0_38209655_20552.cpp: In function 'int bfs(int, int)':
0_0_38209655_20552.cpp:19:14: error: request for member 'empty' in 'q', which is of non-class type 'int'
     while(!q.empty())
              ^
0_0_38209655_20552.cpp:21:9: error: 'node' was not declared in this scope
         node t=q.front();
         ^
0_0_38209655_20552.cpp:22:11: error: request for member 'pop' in 'q', which is of non-class type 'int'
         q.pop();
           ^
0_0_38209655_20552.cpp:23:15: error: 't' was not declared in this scope
         int x=t.a,y=t.b;
               ^
0_0_38209655_20552.cpp: In function 'int main()':
0_0_38209655_20552.cpp:48:18: error: request for member 'empty' in 'q', which is of non-class type 'int'
         while(!q.empty())
                  ^
0_0_38209655_20552.cpp:50:15: error: request for member 'pop' in 'q', which is of non-class type 'int'
             q.pop();
               ^
0_0_38209655_20552.cpp:54:56: error: 'w' was not declared in this scope
         cout<<"To get from "<<a<<" to "<<b<<" takes "<<w<<" knight moves."<<'\n';
                                                        ^


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-29 22:14:29, Gzip enabled