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_38209654_25003.cpp:14:7: error: 'node' was not declared in this scope
 queue<node>q;
       ^
0_0_38209654_25003.cpp:14:11: error: template argument 1 is invalid
 queue<node>q;
           ^
0_0_38209654_25003.cpp:14:11: error: template argument 2 is invalid
0_0_38209654_25003.cpp:14:13: error: invalid type in declaration before ';' token
 queue<node>q;
             ^
0_0_38209654_25003.cpp: In function 'int main()':
0_0_38209654_25003.cpp:26:18: error: request for member 'empty' in 'q', which is of non-class type 'int'
         while(!q.empty())
                  ^
0_0_38209654_25003.cpp:28:15: error: request for member 'pop' in 'q', which is of non-class type 'int'
             q.pop();
               ^
0_0_38209654_25003.cpp:32: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:52, Gzip enabled