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_35956654_10897.cpp: In member function 'void my_heap<T>::clear()':
0_0_35956654_10897.cpp:46:7: error: reference to 'priority_queue' is ambiguous
   q = priority_queue<T>();
       ^
In file included from 0_0_35956654_10897.cpp:8:0:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/pb_ds/priority_queue.hpp:83:9: note: candidates are: template<class _Tv, class Cmp_Fn, class Tag, class _Alloc> class __gnu_pbds::priority_queue
   class priority_queue
         ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
                 from 0_0_35956654_10897.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:370:11: note:                 template<class _Tp, class _Sequence, class _Compare> class std::priority_queue
     class priority_queue
           ^
0_0_35956654_10897.cpp:46:23: error: expected primary-expression before '>' token
   q = priority_queue<T>();
                       ^
0_0_35956654_10897.cpp:46:25: error: expected primary-expression before ')' token
   q = priority_queue<T>();
                         ^
0_0_35956654_10897.cpp:47:7: error: reference to 'priority_queue' is ambiguous
   t = priority_queue<T>();
       ^
In file included from 0_0_35956654_10897.cpp:8:0:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/pb_ds/priority_queue.hpp:83:9: note: candidates are: template<class _Tv, class Cmp_Fn, class Tag, class _Alloc> class __gnu_pbds::priority_queue
   class priority_queue
         ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
                 from 0_0_35956654_10897.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:370:11: note:                 template<class _Tp, class _Sequence, class _Compare> class std::priority_queue
     class priority_queue
           ^
0_0_35956654_10897.cpp:47:23: error: expected primary-expression before '>' token
   t = priority_queue<T>();
                       ^
0_0_35956654_10897.cpp:47:25: error: expected primary-expression before ')' token
   t = priority_queue<T>();
                         ^


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-23 07:06:07, Gzip enabled