Problem bananasmoothie
User caslyn
Submission Time 2026-06-23 21:55:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bananasmoothie.cpp: In function ‘int main()’:
bananasmoothie.cpp:6:11: error: expected initializer before ‘Temp’
6 | int N, K Temp, Maxcup = 0;
| ^~~~
bananasmoothie.cpp:7:2: error: ‘vector’ was not declared in this scope
7 | vector<int> Q;
| ^~~~~~
bananasmoothie.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include <iostream>
+++ |+#include <vector>
2 | using namespace std;
bananasmoothie.cpp:7:9: error: expected primary-expression before ‘int’
7 | vector<int> Q;
| ^~~
bananasmoothie.cpp:9:14: error: ‘K’ was not declared in this scope
9 | cin >> N >> K;
| ^
bananasmoothie.cpp:11:2: error: ‘Temp’ was not declared in this scope
11 | Temp = N;
| ^~~~
bananasmoothie.cpp:15:10: error: ‘Q’ was not declared in this scope
15