Problem descsort
User hitarthdangra
Submission Time 2025-06-18 22:29:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

descsort.cpp: In function ‘int main()’:
descsort.cpp:9:12: error: no match for ‘operator[]’ (operand types are ‘std::priority_queue<int>’ and ‘int’)
9 | cin >> pq[i];
| ^
descsort.cpp:13:13: error: no match for ‘operator[]’ (operand types are ‘std::priority_queue<int>’ and ‘int’)
13 | cout << pq[i]
| ^