Problem eating
User ayreentazz
Submission Time 2026-04-18 11:48:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eating.cpp: In function ‘int main()’:
eating.cpp:6:18: error: ‘n’ was not declared in this scope
6 | for(int i= 0; i<n,i++){
| ^
eating.cpp:6:23: error: expected ‘;’ before ‘)’ token
6 | for(int i= 0; i<n,i++){
| ^
| ;
eating.cpp:9:16: error: expected ‘;’ before string constant
9 | if(m[b]) cout"NO\n";
| ^~~~~~
| ;
eating.cpp:10:12: error: expected ‘;’ before string constant
10 | else cout"YES\n";
| ^~~~~~~
| ;