Problem eating
User shavonne22
Submission Time 2026-04-18 11:50:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eating.cpp: In function ‘int main()’:
eating.cpp:5:49: error: expected ‘;’ before ‘int’
5 | ios_base::sync_with_stdio(false); cin.tie(0)
| ^
| ;
6 |
7 | int n;
| ~~~
eating.cpp:8:10: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
8 | cin>>n;
| ^
| yn
eating.cpp:11:24: error: expected ‘;’ before ‘)’ token
11 | for(int i=0;i<n,i++){
| ^
| ;
eating.cpp:14:16: 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’
14 | if(m[b]) cou