Problem | bananasmoothie |
---|---|
User | Hytoh |
Submission Time | 2023-05-29 18:50:28 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
bananasmoothie.cpp: In function ‘int main()’:
bananasmoothie.cpp:13:7: error: expected ‘}’ before ‘else’
13 | else
| ^~~~
bananasmoothie.cpp:12:22: note: to match this ‘{’
12 | if (quality < 0) {
| ^
bananasmoothie.cpp:14:5: error: expected primary-expression before ‘}’ token
14 | }
| ^
bananasmoothie.cpp:15:5: error: ‘else’ without a previous ‘if’
15 | else {
| ^~~~
bananasmoothie.cpp: At global scope:
bananasmoothie.cpp:19:9: error: expected constructor, destructor, or type conversion before ‘(’ token
19 | sort (white.begin(), white.end(),greater<int>());
| ^
bananasmoothie.cpp:21:3: error: expected unqualified-id before ‘for’
21 | for (int i = k-1; i < white.size(); i+=k) {
| ^~~
bananasmoothie.cpp:21:21: error: ‘i’ does not name a type
21 | for (int i = k-1; i < white.size(); i+=k