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

Compile Error

eating.cpp: In function ‘int main()’:
eating.cpp:8:23: error: expected ‘;’ before ‘)’ token
8 | for(int i= 0; i<n,i++){
| ^
| ;
eating.cpp:11:10: error: could not convert ‘m.std::map<long long int, std::map<long long int, bool> >::operator[](b)’ from ‘std::map<long long int, std::map<long long int, bool> >::mapped_type’ {aka ‘std::map<long long int, bool>’} to ‘bool’
11 | if(m[b]) cout"NO\n";
| ^
| |
| std::map<long long int, std::map<long long int, bool> >::mapped_type {aka std::map<long long int, bool>}
eating.cpp:11:16: error: expected ‘;’ before string constant
11 | if(m[b]) cout"NO\n";
| ^~~~~~
| ;
eating.cpp:12:12: error: expected ‘;’ before string constant
12 | else cout"YES\n";
| ^~~~~~~
|