0_0_38630442_6862.cpp:5:1: error: reference to 'priority_queue' is ambiguous
priority_queue<int,std::less<int>,pairing_heap_tag>pq[100005];
^~~~~~~~~~~~~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/queue:64,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/x86_64-w64-mingw32/bits/stdc++.h:86,
from 0_0_38630442_6862.cpp:1:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_queue.h:435:11: note: candidates are: 'template<class _Tp, class _Sequence, class _Compare> class std::priority_queue'
class priority_queue
^~~~~~~~~~~~~~
In file included from 0_0_38630442_6862.cpp:2:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ext/pb_ds/priority_queue.hpp:83:9: note: 'template<class _Tv, class Cmp_Fn, class Tag, class _Alloc> class __gnu_pbds::priority_queue'
class priority_queue
^~~~~~~~~~~~~~
0_0_38630442_6862.cpp: In function 'int find(int)':
0_0_38630442_6862.cpp:10:15: error: 'x' was not declared in this scope
return fa[x];
^
0_0_38630442_6862.cpp: In function 'void work()':
0_0_38630442_6862.cpp:17:9: error: 'pq' was not declared in this scope
pq[i].clear();
^~
0_0_38630442_6862.cpp:23:9: error: 'q' was not declared in this scope
q[i].push(a);
^
0_0_38630442_6862.cpp:34:12: error: 'pq' was not declared in this scope
tx=pq[fx].top(),ty=pq[fy].top();
^~
0_0_38630442_6862.cpp:40:15: error: 'q' was not declared in this scope
cout<<q[fx].top()<<"\n";
^
|