Problem eating
User cheryltkx
Submission Time 2026-04-18 11:52:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eating.cpp: In function ‘int main()’:
eating.cpp:7:11: error: expected ‘;’ before ‘==’ token
7 | for(int i==0;i<n;i++){
| ^~
| ;
eating.cpp:7:11: error: expected primary-expression before ‘==’ token
7 | for(int i==0;i<n;i++){
| ^~
eating.cpp:7:18: error: expected ‘)’ before ‘;’ token
7 | for(int i==0;i<n;i++){
| ~ ^
| )
eating.cpp:7:19: error: ‘i’ was not declared in this scope
7 | for(int i==0;i<n;i++){
| ^
eating.cpp:17:1: error: expected ‘}’ at end of input
17 | }
| ^
eating.cpp:3:12: note: to match this ‘{’
3 | int main (){
| ^