Problem eating
User ayreentazz
Submission Time 2026-04-18 11:52:05
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:7: error: no match for ‘operator[]’ (operand types are ‘std::map<long long int, std::map<long long int, bool> >’ and ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’})
11 | if(m[p][b]) cout"NO\n";
| ^
In file included from /usr/include/c++/9/map:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:81,
from eating.cpp:1:
/usr/include/c++/9/bits/stl_map.h:490:7: note: candidate: ‘std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = long long int; _Tp = std::map<long long int, bool>; _Compare = std::less<long long int>; _Alloc = std::allocator<std::pair<const long long