Problem snack
User RendezvousAnonymous
Submission Time 2023-11-09 15:21:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

snack.cpp: In function ‘int main()’:
snack.cpp:12:12: error: expected ‘;’ before ‘==’ token
12 | for (int i == 0; i < n; i++){
| ^~~
| ;
snack.cpp:12:13: error: expected primary-expression before ‘==’ token
12 | for (int i == 0; i < n; i++){
| ^~
snack.cpp:12:24: error: expected ‘)’ before ‘;’ token
12 | for (int i == 0; i < n; i++){
| ~ ^
| )
snack.cpp:12:26: error: ‘i’ was not declared in this scope
12 | for (int i == 0; i < n; i++){
| ^
snack.cpp:21:12: error: expected ‘;’ before ‘==’ token
21 | for (int k == 1; k < n; k++){
| ^~~
| ;
snack.cpp:21:13: error: expected primary-expression before ‘==’ token
21 | for (int k == 1; k < n; k++){
| ^~
snack.cpp:21:24: error: expected ‘)’ before ‘;’