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_39029608_21552.cpp:2:9: error: #include expects "FILENAME" or <FILENAME>
    2 | #include
      |         ^
0_0_39029608_21552.cpp:3:9: error: #include expects "FILENAME" or <FILENAME>
    3 | #include
      |         ^
0_0_39029608_21552.cpp:4:9: error: #include expects "FILENAME" or <FILENAME>
    4 | #include
      |         ^
0_0_39029608_21552.cpp:5:9: error: #include expects "FILENAME" or <FILENAME>
    5 | #include
      |         ^
0_0_39029608_21552.cpp:6:9: error: #include expects "FILENAME" or <FILENAME>
    6 | #include
      |         ^
0_0_39029608_21552.cpp:7:9: error: #include expects "FILENAME" or <FILENAME>
    7 | #include
      |         ^
0_0_39029608_21552.cpp: In function 'int bfs()':
0_0_39029608_21552.cpp:37:1: error: 'priority_queue' was not declared in this scope
   37 | priority_queue q;//优先队列保证每次取时间最小
      | ^~~~~~~~~~~~~~
0_0_39029608_21552.cpp:1:1: note: 'std::priority_queue' is defined in header '<queue>'; did you forget to '#include <queue>'?
  +++ |+#include <queue>
    1 | //bfs+优先队列
0_0_39029608_21552.cpp:43:1: error: 'q' was not declared in this scope
   43 | q.push(cur);
      | ^
0_0_39029608_21552.cpp: In function 'void print(int, int)':
0_0_39029608_21552.cpp:73:1: error: 'printf' was not declared in this scope
   73 | printf("%ds:(%d,%d)->(%d,%d)\n",tem++,px,py,x,y);
      | ^~~~~~
0_0_39029608_21552.cpp:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | //bfs+优先队列
0_0_39029608_21552.cpp: In function 'int main()':
0_0_39029608_21552.cpp:81:7: error: 'scanf' was not declared in this scope
   81 | while(scanf("%d%d",&m,&n)!=EOF)
      |       ^~~~~
0_0_39029608_21552.cpp:81:28: error: 'EOF' was not declared in this scope
   81 | while(scanf("%d%d",&m,&n)!=EOF)
      |                            ^~~
0_0_39029608_21552.cpp:81:28: note: 'EOF' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
0_0_39029608_21552.cpp:83:1: error: 'memset' was not declared in this scope
   83 | memset(map,0,sizeof(map));
      | ^~~~~~
0_0_39029608_21552.cpp:1:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
  +++ |+#include <cstring>
    1 | //bfs+优先队列
0_0_39029608_21552.cpp:105:1: error: 'printf' was not declared in this scope
  105 | printf("God please help our poor hero.\n");
      | ^~~~~~
0_0_39029608_21552.cpp:105:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
0_0_39029608_21552.cpp:108:1: error: 'printf' was not declared in this scope
  108 | printf("It takes %d seconds to reach the target position, let me show you the way.\n",ans);
      | ^~~~~~
0_0_39029608_21552.cpp:108:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
0_0_39029608_21552.cpp:112:1: error: 'printf' was not declared in this scope
  112 | printf("FINISH\n");
      | ^~~~~~
0_0_39029608_21552.cpp:112:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?


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-24 10:53:41, Gzip enabled