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>();
^
|