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_17315517_30792.cpp: In member function 'void Dijkstra::dijkstra(int)':
0_0_17315517_30792.cpp:46:62: error: 'pb_ds' was not declared in this scope
         __gnu_pbds::priority_queue<HeapNode, less<HeapNode>, pb_ds::pairing_heap_tag, allocator<char> > Q;
                                                              ^
0_0_17315517_30792.cpp:46:103: error: template argument 3 is invalid
         __gnu_pbds::priority_queue<HeapNode, less<HeapNode>, pb_ds::pairing_heap_tag, allocator<char> > Q;
                                                                                                       ^
0_0_17315517_30792.cpp:46:106: error: invalid type in declaration before ';' token
         __gnu_pbds::priority_queue<HeapNode, less<HeapNode>, pb_ds::pairing_heap_tag, allocator<char> > Q;
                                                                                                          ^
0_0_17315517_30792.cpp:53:11: error: request for member 'push' in 'Q', which is of non-class type 'int'
         Q.push(make_pair(0, s));
           ^
0_0_17315517_30792.cpp:54:19: error: request for member 'empty' in 'Q', which is of non-class type 'int'
         while (!Q.empty())
                   ^
0_0_17315517_30792.cpp:56:28: error: request for member 'top' in 'Q', which is of non-class type 'int'
             HeapNode x = Q.top();
                            ^
0_0_17315517_30792.cpp:57:15: error: request for member 'pop' in 'Q', which is of non-class type 'int'
             Q.pop();
               ^
0_0_17315517_30792.cpp:69:23: error: request for member 'push' in 'Q', which is of non-class type 'int'
                     Q.push(make_pair(d[e.to], e.to));
                       ^


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-30 05:08:55, Gzip enabled