Problem bananasmoothie
User Zosho
Submission Time 2025-06-19 16:39:50
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 ‘int’
9 | int a[n]
| ^~~
bananasmoothie.cpp:10:17: error: ‘i’ was not declared in this scope
10 | for (int i =0; i < n; i ++) {
| ^
bananasmoothie.cpp:13:7: error: ‘Q’ was not declared in this scope
13 | sort(Q, Q + n, greater<long long>());
| ^