Problem lunchbox
User Bensamuel2008
Submission Time 2025-06-18 16:25:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:7:25: error: expected ‘)’ before ‘;’ token
7 | for (int i=1; i<=m; i++;){
| ~ ^
| )
lunchbox.cpp:7:26: error: expected primary-expression before ‘)’ token
7 | for (int i=1; i<=m; i++;){
| ^
lunchbox.cpp:14:17: error: no match for ‘operator+=’ (operand types are ‘std::basic_ostream<char>::__ostream_type’ {aka ‘std::basic_ostream<char>’} and ‘int’)
14 | cout << count += 1;
| ~~~~~~~~~~~~~~^~~~