Problem lunchbox
User varsh05442
Submission Time 2025-06-19 13:25:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp:8:1: error: ‘cin’ does not name a type; did you mean ‘sin’?
8 | cin >> N >> m;
| ^~~
| sin
lunchbox.cpp:10:1: error: expected unqualified-id before ‘for’
10 | for (int i = 0; i < m; i++){
| ^~~
lunchbox.cpp:10:17: error: ‘i’ does not name a type
10 | for (int i = 0; i < m; i++){
| ^
lunchbox.cpp:10:24: error: ‘i’ does not name a type
10 | for (int i = 0; i < m; i++){
| ^
lunchbox.cpp:15:5: error: expected constructor, destructor, or type conversion before ‘(’ token
15 | sort( v.begin(), v.end() );
| ^
lunchbox.cpp:17:1: error: expected unqualified-id before ‘for’
17 | for (int i = 0; i < m; i++){
| ^~~
lunchbox.cpp:17:17: error: ‘i’ does not name a type
17 | for (int i = 0; i < m; i++){
| ^
lunchbox.cpp:17:24: error: ‘i’ does not name a type
17 | fo