| Problem | bananasmoothie |
|---|---|
| User | caslyn |
| Submission Time | 2026-06-23 21:56:07 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
bananasmoothie.cpp: In function ‘int main()’:
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:15:10: error: ‘Q’ was not declared in this scope
15 | cin >> Q[i];
| ^
bananasmoothie.cpp:16:7: error: expected ‘(’ before ‘Q’
16 | if Q[i] < 0
| ^
| (
bananasmoothie.cpp:22:7: error: ‘Q’ was not declared in this scope
22 | sort(Q.begin(), Q.end(), greater<int>());
| ^
bananasmoothie.cpp:22:2: error: ‘sort’ was not declared in