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_38971341_2850.cpp: In function 'void Dijkstra()':
0_0_38971341_2850.cpp:45:38: error: 'cmp' was not declared in this scope
   45 |     priority_queue<pii, vector<pii>, cmp> Q;
      |                                      ^~~
0_0_38971341_2850.cpp:45:41: error: template argument 3 is invalid
   45 |     priority_queue<pii, vector<pii>, cmp> Q;
      |                                         ^
0_0_38971341_2850.cpp:46:7: error: request for member 'push' in 'Q', which is of non-class type 'int'
   46 |     Q.push(make_pair(0,0));
      |       ^~~~
0_0_38971341_2850.cpp:47:14: error: request for member 'empty' in 'Q', which is of non-class type 'int'
   47 |     while(!Q.empty()){
      |              ^~~~~
0_0_38971341_2850.cpp:48:21: error: request for member 'top' in 'Q', which is of non-class type 'int'
   48 |         pii tmp = Q.top();
      |                     ^~~
0_0_38971341_2850.cpp:49:11: error: request for member 'pop' in 'Q', which is of non-class type 'int'
   49 |         Q.pop();
      |           ^~~
0_0_38971341_2850.cpp:57:19: error: request for member 'push' in 'Q', which is of non-class type 'int'
   57 |                 Q.push(make_pair(dis[v], v));
      |                   ^~~~


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-01-10 17:16:37, Gzip enabled