Problem lunchbox
User neoaix
Submission Time 2026-06-23 16:52:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:11:9: error: ‘curLunchBoxes’ was not declared in this scope
11 | if (curLunchBoxes = k[i] ){
| ^~~~~~~~~~~~~
lunchbox.cpp:11:27: error: ‘i’ was not declared in this scope
11 | if (curLunchBoxes = k[i] ){
| ^
lunchbox.cpp:13:22: error: overloaded function with no contextual type information
13 | count += 1;
| ^
lunchbox.cpp:15:4: error: break statement not within loop or switch
15 | break;
| ^~~~~
lunchbox.cpp: At global scope:
lunchbox.cpp:18:5: error: ‘cout’ does not name a type
18 | cout<<count<<"\n";
| ^~~~
lunchbox.cpp:19:5: error: expected unqualified-id before ‘return’
19 | return 0;
| ^~~~~~
lunchbox.cpp:20:1: error: expected declaration before ‘}’ token
20 | }
| ^