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_32972372_19279.cpp: In function 'void bfs(int)':
0_0_32972372_19279.cpp:66:5: error: 'queue' was not declared in this scope
     queue<P> q;
     ^
0_0_32972372_19279.cpp:66:12: error: expected primary-expression before '>' token
     queue<P> q;
            ^
0_0_32972372_19279.cpp:66:14: error: 'q' was not declared in this scope
     queue<P> q;
              ^
0_0_32972372_19279.cpp:84:40: error: 'swap' was not declared in this scope
             swap(np.a[np.x], np.a[tp.x]);
                                        ^
0_0_32972372_19279.cpp: In function 'int main()':
0_0_32972372_19279.cpp:97:32: error: 'memset' was not declared in this scope
     memset(vis, -1, sizeof(vis));
                                ^
0_0_32972372_19279.cpp:102:19: error: 'scanf' was not declared in this scope
     scanf("%d", &T);
                   ^
0_0_32972372_19279.cpp:124:9: error: 'string' was not declared in this scope
         string path = "";
         ^
0_0_32972372_19279.cpp:126:13: error: 'path' was not declared in this scope
             path += dir[vis[k][h]];
             ^
0_0_32972372_19279.cpp:129:37: error: 'path' was not declared in this scope
         printf("Case %d: %d\n", cs, path.length()-1);
                                     ^
0_0_32972372_19279.cpp:129:52: error: 'printf' was not declared in this scope
         printf("Case %d: %d\n", cs, path.length()-1);
                                                    ^


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-17 03:42:42, Gzip enabled