Problem eating
User sharelletqx
Submission Time 2026-04-18 11:49:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eating.cpp: In function ‘int main()’:
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]){
| ^
| |
| std::map<long long int, std::map<long long int, bool> >::mapped_type {aka std::map<long long int, bool>}