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_39501037_23152.cpp:1:3: error: stray '#' in program
    1 | 21#include<bits/stdc++.h>
      |   ^
0_0_39501037_23152.cpp:1:1: error: expected unqualified-id before numeric constant
    1 | 21#include<bits/stdc++.h>
      | ^~
0_0_39501037_23152.cpp: In function 'void wide_search(int, int, int, int)':
0_0_39501037_23152.cpp:22:9: error: 'priority_queue' was not declared in this scope
   22 |         priority_queue<hell> q;
      |         ^~~~~~~~~~~~~~
0_0_39501037_23152.cpp:22:28: error: expected primary-expression before '>' token
   22 |         priority_queue<hell> q;
      |                            ^
0_0_39501037_23152.cpp:22:30: error: 'q' was not declared in this scope
   22 |         priority_queue<hell> q;
      |                              ^
0_0_39501037_23152.cpp:25:9: error: 'memset' was not declared in this scope
   25 |         memset(visit,0,sizeof(visit));
      |         ^~~~~~
0_0_39501037_23152.cpp:1:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
  +++ |+#include <cstring>
    1 | 21#include<bits/stdc++.h>
0_0_39501037_23152.cpp:57:21: error: 'printf' was not declared in this scope
   57 |         if(ans==-1) printf("Poor ANGEL has to stay in the prison all his life.\n");
      |                     ^~~~~~
0_0_39501037_23152.cpp:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | 21#include<bits/stdc++.h>
0_0_39501037_23152.cpp:58:14: error: 'printf' was not declared in this scope
   58 |         else printf("%d\n",ans);
      |              ^~~~~~
0_0_39501037_23152.cpp:58:14: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
0_0_39501037_23152.cpp: In function 'int main()':
0_0_39501037_23152.cpp:63:15: error: 'scanf' was not declared in this scope
   63 |         while(scanf("%d%d",&n,&m)!=EOF)
      |               ^~~~~
0_0_39501037_23152.cpp:63:36: error: 'EOF' was not declared in this scope
   63 |         while(scanf("%d%d",&n,&m)!=EOF)
      |                                    ^~~
0_0_39501037_23152.cpp:63:36: note: 'EOF' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-18 20:38:38, Gzip enabled