Problem potatosalad
User JcYong
Submission Time 2024-06-20 09:38:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:12:9: error: no match for ‘operator[]’ (operand types are ‘std::priority_queue<int>’ and ‘int’)
12 | chosen[i] = mass;
| ^
potatosalad.cpp:15:14: error: no match for ‘operator[]’ (operand types are ‘std::priority_queue<int>’ and ‘int’)
15 | a += chosen[j];
| ^