Problem descsort
User hitarthdangra
Submission Time 2025-06-18 22:28:49
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:12:12: error: no match for ‘operator[]’ (operand types are ‘std::priority_queue<int>’ and ‘int’)
12 | cout >>pq[i]
| ^
descsort.cpp:15:1: error: expected ‘}’ at end of input
15 | }
| ^
descsort.cpp:8:30: note: to match this ‘{’
8 | for (int i = 0; i < n; i++) {
| ^
descsort.cpp:15:1: error: expected ‘}’ at end of input
15 | }
| ^
descsort.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^