Problem | lunchbox |
---|---|
User | Evoi |
Submission Time | 2023-11-10 16:40:41 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:10:26: error: found ‘:’ in nested-name-specifier, expected ‘::’
10 | for (int i = 0; i < s: i++) {
| ^
| ::
lunchbox.cpp:10:25: error: ‘s’ is not a class, namespace, or enumeration
10 | for (int i = 0; i < s: i++) {
| ^
lunchbox.cpp:20:10: error: expected ‘)’ before ‘;’ token
20 | q = 0;
| ^
| )
lunchbox.cpp:10:9: note: to match this ‘(’
10 | for (int i = 0; i < s: i++) {
| ^
lunchbox.cpp:24:13: error: ‘counter’ was not declared in this scope
24 | counter = counter + 1;
| ^~~~~~~
lunchbox.cpp:27:13: error: ‘counter’ was not declared in this scope
27 | cout << counter;
| ^~~~~~~