Problem | medianheap |
---|---|
User | jmuzhen |
Submission Time | 2024-06-29 16:08:09 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
medianheap.cpp:4:12: error: template placeholder type ‘priority_queue<...auto...>’ must be followed by a simple declarator-id
4 | #define pq priority_queue
| ^~~~~~~~~~~~~~
medianheap.cpp:11:13: note: in expansion of macro ‘pq’
11 | void adjust(pq& left, pq& right) {
| ^~
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from medianheap.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:443:11: note: ‘template<class _Tp, class _Sequence, class _Compare> class std::priority_queue’ declared here
443 | class priority_queue
| ^~~~~~~~~~~~~~
medianheap.cpp:11:21: error: expected ‘)’ before ‘,’ token
11 | void adjust(pq& left, pq& right) {
| ~ ^
| )
medianheap.cpp:11:25: error: expected initializer before ‘&’ token
11 | void ad