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_17505943_30290.cpp: In function 'int BFS()':
0_0_17505943_30290.cpp:15:5: error: 'queue' was not declared in this scope
     queue<node>q;
     ^
0_0_17505943_30290.cpp:15:15: error: expected primary-expression before '>' token
     queue<node>q;
               ^
0_0_17505943_30290.cpp:15:16: error: 'q' was not declared in this scope
     queue<node>q;
                ^
0_0_17505943_30290.cpp:17:29: error: 'memset' was not declared in this scope
     memset(vis,0,sizeof(vis));
                             ^
0_0_17505943_30290.cpp:30:29: error: 'abs' was not declared in this scope
         if(abs(now.x1-now.x2)==1 && now.y1==now.y2) return now.step;
                             ^
0_0_17505943_30290.cpp:31:29: error: 'abs' was not declared in this scope
         if(abs(now.y1-now.y2)==1 && now.x1==now.x2) return now.step;
                             ^
0_0_17505943_30290.cpp: In function 'int main()':
0_0_17505943_30290.cpp:56:29: error: 'scanf' was not declared in this scope
     while(scanf("%d%d",&n,&m)!=-1)
                             ^
0_0_17505943_30290.cpp:68:41: error: 'printf' was not declared in this scope
         if(ans==-1) printf("Bad Luck!\n");
                                         ^
0_0_17505943_30290.cpp:69:38: error: 'printf' was not declared in this scope
         else        printf("%d\n",ans);
                                      ^


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-30 08:25:07, Gzip enabled