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_30728938_28540.cpp:19:9: error: 'pair' does not name a type
 typedef pair<int , int> pii;
         ^
0_0_30728938_28540.cpp: In function 'int dij(int, int*)':
0_0_30728938_28540.cpp:33:5: error: 'priority_queue' was not declared in this scope
     priority_queue<pii,vector<pii>,greater<> >q;
     ^
0_0_30728938_28540.cpp:33:20: error: 'pii' was not declared in this scope
     priority_queue<pii,vector<pii>,greater<> >q;
                    ^
0_0_30728938_28540.cpp:33:24: error: 'vector' was not declared in this scope
     priority_queue<pii,vector<pii>,greater<> >q;
                        ^
0_0_30728938_28540.cpp:33:35: error: expected primary-expression before ',' token
     priority_queue<pii,vector<pii>,greater<> >q;
                                   ^
0_0_30728938_28540.cpp:33:36: error: 'greater' was not declared in this scope
     priority_queue<pii,vector<pii>,greater<> >q;
                                    ^
0_0_30728938_28540.cpp:33:44: error: expected primary-expression before '>' token
     priority_queue<pii,vector<pii>,greater<> >q;
                                            ^
0_0_30728938_28540.cpp:33:46: error: expected primary-expression before '>' token
     priority_queue<pii,vector<pii>,greater<> >q;
                                              ^
0_0_30728938_28540.cpp:33:47: error: 'q' was not declared in this scope
     priority_queue<pii,vector<pii>,greater<> >q;
                                               ^
0_0_30728938_28540.cpp:34:31: error: 'memset' was not declared in this scope
     memset(vis, 0, sizeof(vis));
                               ^
0_0_30728938_28540.cpp: In function 'int main()':
0_0_30728938_28540.cpp:8:89: error: 'stdin' was not declared in this scope
 #define FRER() freopen("/Users/seven7777777/Desktop/Code/TESTXCODE/TESTXCODE/i.txt","r",stdin)
                                                                                         ^
0_0_30728938_28540.cpp:52:5: note: in expansion of macro 'FRER'
     FRER();
     ^
0_0_30728938_28540.cpp:8:94: error: 'freopen' was not declared in this scope
 #define FRER() freopen("/Users/seven7777777/Desktop/Code/TESTXCODE/TESTXCODE/i.txt","r",stdin)
                                                                                              ^
0_0_30728938_28540.cpp:52:5: note: in expansion of macro 'FRER'
     FRER();
     ^
0_0_30728938_28540.cpp:53:30: error: 'scanf' was not declared in this scope
     while(~scanf("%d%d",&n,&m)&&(n||m)){
                              ^
0_0_30728938_28540.cpp:55:38: error: 'memset' was not declared in this scope
         memset(head, -1, sizeof(head));
                                      ^


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-26 14:41:23, Gzip enabled