Problem lunchbox
User Indy39910
Submission Time 2025-02-19 23:18:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:9:14: error: expected ‘)’ before ‘;’ token
9 | while(int i=0;i<m;i++;) {
| ~ ^
| )
lunchbox.cpp:9:15: error: ‘i’ was not declared in this scope
9 | while(int i=0;i<m;i++;) {
| ^
lunchbox.cpp:9:23: error: expected primary-expression before ‘)’ token
9 | while(int i=0;i<m;i++;) {
| ^
lunchbox.cpp:14:11: error: expected ‘)’ before ‘;’ token
14 | while(n>=0;i=0;i++;){
| ~ ^
| )
lunchbox.cpp:14:20: error: expected primary-expression before ‘)’ token
14 | while(n>=0;i=0;i++;){
| ^