Problem medianheap
User enterusername
Submission Time 2026-06-20 11:23:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

medianheap.cpp: In function ‘int main()’:
medianheap.cpp:55:8: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::priority_queue<long long int, std::vector<long long int, std::allocator<long long int> >, std::greater<long long int> >’)
55 | cout << upper_half << ' ';
| ~~~~ ^~ ~~~~~~~~~~
| | |
| | std::priority_queue<long long int, std::vector<long long int, std::allocator<long long int> >, std::greater<long long int> >
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/c++/9/istream:39,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
fr