Problem bananasmoothie
User MegaG
Submission Time 2025-11-05 09:23:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bananasmoothie.cpp: In function ‘int main()’:
bananasmoothie.cpp:17:12: error: no match for ‘operator[]’ (operand types are ‘std::priority_queue<long long int>’ and ‘long long int’)
17 | cin >> pq[i];
| ^
bananasmoothie.cpp:20:21: error: ‘floor’ was not declared in this scope
20 | for(int i = 0; i < floor(n/k)*k; i++){
| ^~~~~