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_35137349_14624.cpp: In function 'void Dijkstra(int)':
0_0_35137349_14624.cpp:29:34: error: type/value mismatch at argument 2 in template parameter list for 'template<class _Tp, class _Sequence, class _Compare> class std::priority_queue'
     priority_queue<P, vector, cmp> pq;
                                  ^
0_0_35137349_14624.cpp:29:34: error:   expected a type, got 'vector'
0_0_35137349_14624.cpp:29:38: error: invalid type in declaration before ';' token
     priority_queue<P, vector, cmp> pq;
                                      ^
0_0_35137349_14624.cpp:32:8: error: request for member 'push' in 'pq', which is of non-class type 'int'
     pq.push(P(0, 1));
        ^
0_0_35137349_14624.cpp:33:16: error: request for member 'empty' in 'pq', which is of non-class type 'int'
     while( !pq.empty() )
                ^
0_0_35137349_14624.cpp:35:18: error: request for member 'top' in 'pq', which is of non-class type 'int'
         P t = pq.top();
                  ^
0_0_35137349_14624.cpp:36:12: error: request for member 'pop' in 'pq', which is of non-class type 'int'
         pq.pop();
            ^
0_0_35137349_14624.cpp:47:20: error: request for member 'push' in 'pq', which is of non-class type 'int'
                 pq.push(P(m, 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-08-31 07:21:43, Gzip enabled