Problem | medianheap |
---|---|
User | jmuzhen |
Submission Time | 2024-06-29 16:07:37 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
medianheap.cpp: In function ‘int main()’:
medianheap.cpp:46:16: error: invalid initialization of reference of type ‘std::priority_queue<int>&’ from expression of type ‘std::priority_queue<int, std::vector<int>, std::greater<int> >’
46 | adjust(left, right);
| ^~~~~
medianheap.cpp:11:37: note: in passing argument 2 of ‘void adjust(std::priority_queue<int>&, std::priority_queue<int>&)’
11 | void adjust(pq<int>& left, pq<int>& right) {
| ^