Problem lunchbox
User Evoi
Submission Time 2023-11-10 16:44:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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:23:9: error: ‘counter’ was not declared in this scope
23 | counter = counter + 1;
| ^~~~~~~
lunchbox.cpp:29:13: error: ‘counter’ was not declared in this scope
29 | cout << counter;
| ^~~~~~~