Problem medianheap
User j0ashhh
Submission Time 2026-02-07 22:03:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

medianheap.cpp: In function ‘int main()’:
medianheap.cpp:19:15: error: no match for ‘operator[]’ (operand types are ‘std::priority_queue<int>’ and ‘int’)
19 | cout << st[num/2];
| ^
medianheap.cpp:21:15: error: no match for ‘operator[]’ (operand types are ‘std::priority_queue<int>’ and ‘int’)
21 | cout << st[num+1]
| ^
medianheap.cpp:27:13: error: no match for ‘operator[]’ (operand types are ‘std::priority_queue<int>’ and ‘int’)
27 | cout << st[i] << " ";
| ^