Problem | bananasmoothie |
---|---|
User | Zosho |
Submission Time | 2025-06-19 16:38:51 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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>());
| ^
bananasmoothie.cpp:16:9: error: ‘K’ was not declared in this scope
16 | if (Q[K-1 + 1*k] >= 0) {
| ^