Problem bananasmoothie
User Zosho
Submission Time 2025-06-19 16:39:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bananasmoothie.cpp: In function ‘int main()’:
bananasmoothie.cpp:9:2: error: expected initializer before ‘for’
9 | for (int i =0; i < n; i ++) {
| ^~~
bananasmoothie.cpp:9:17: error: ‘i’ was not declared in this scope
9 | for (int i =0; i < n; i ++) {
| ^
bananasmoothie.cpp:12:7: error: ‘Q’ was not declared in this scope
12 | sort(Q, Q + n, greater<long long>());
| ^