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_36706006_26099.cpp:54:16: error: 'kdq' was not declared in this scope
 priority_queue<kdq>qe ;
                ^
0_0_36706006_26099.cpp:54:19: error: template argument 1 is invalid
 priority_queue<kdq>qe ;
                   ^
0_0_36706006_26099.cpp:54:19: error: template argument 2 is invalid
0_0_36706006_26099.cpp:54:19: error: template argument 3 is invalid
0_0_36706006_26099.cpp:54:23: error: invalid type in declaration before ';' token
 priority_queue<kdq>qe ;
                       ^
0_0_36706006_26099.cpp: In function 'void Prim()':
0_0_36706006_26099.cpp:73:11: error: request for member 'empty' in 'qe', which is of non-class type 'int'
 while(!qe.empty())qe.pop() ;
           ^
0_0_36706006_26099.cpp:73:22: error: request for member 'pop' in 'qe', which is of non-class type 'int'
 while(!qe.empty())qe.pop() ;
                      ^
0_0_36706006_26099.cpp:74:82: error: request for member 'push' in 'qe', which is of non-class type 'int'
 for (int i = 0 ; i < n ; i ++ )dis[i] = Map[0][i] , vis[i] = 0 ,G[i].clear() ,qe.push((kdq){0 , i , dis[i]}) ;
                                                                                  ^
0_0_36706006_26099.cpp:76:11: error: request for member 'empty' in 'qe', which is of non-class type 'int'
 while(!qe.empty()){
           ^
0_0_36706006_26099.cpp:77:13: error: request for member 'top' in 'qe', which is of non-class type 'int'
 kdq tp = qe.top() ; qe.pop() ;
             ^
0_0_36706006_26099.cpp:77:24: error: request for member 'pop' in 'qe', which is of non-class type 'int'
 kdq tp = qe.top() ; qe.pop() ;
                        ^
0_0_36706006_26099.cpp:84:95: error: request for member 'push' in 'qe', which is of non-class type 'int'
 for (int i = 0 ; i < n ; i ++ )if(!vis[i] && dis[i] > Map[tp.e][i])dis[i] = Map[tp.e][i] , qe.push((kdq){tp.e , i , dis[i]}) ;
                                                                                               ^


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-06-30 06:54:14, Gzip enabled