Problem lunchbox
User wongethan8192
Submission Time 2023-02-11 16:00:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:6:15: error: ‘c’ was not declared in this scope
6 | do{a-=arr[c];c++;}while(a>0);cout<<c;
| ^
lunchbox.cpp:6:40: error: ‘c’ was not declared in this scope
6 | do{a-=arr[c];c++;}while(a>0);cout<<c;
| ^