Problem lunchbox
User Tolo925kt
Submission Time 2026-08-27 16:55:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cc1plus: error: ‘::main’ must return ‘int’
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:8:40: error: expected ‘)’ before ‘;’ token
8 | for (int sheep = 0; sheep < m; sheep++;) {
| ~ ^
| )
lunchbox.cpp:8:41: error: expected primary-expression before ‘)’ token
8 | for (int sheep = 0; sheep < m; sheep++;) {
| ^
lunchbox.cpp:18:2: error: expected ‘}’ at end of input
18 | }
| ^
lunchbox.cpp:12:30: note: to match this ‘{’
12 | for (int c = 0; c < m; c++) {
| ^
lunchbox.cpp:18:2: error: expected ‘}’ at end of input
18 | }
| ^
lunchbox.cpp:4:13: note: to match this ‘{’
4 | int main () {
| ^