Problem lunchbox
User Maggie
Submission Time 2023-11-09 10:27:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp:13:7: error: expected constructor, destructor, or type conversion before ‘(’ token
13 | sort (A,A + m);
| ^
lunchbox.cpp:15:2: error: expected unqualified-id before ‘for’
15 | for (int k = 0; k < m && sum <= N; k++){
| ^~~
lunchbox.cpp:15:18: error: ‘k’ does not name a type
15 | for (int k = 0; k < m && sum <= N; k++){
| ^
lunchbox.cpp:15:37: error: ‘k’ does not name a type
15 | for (int k = 0; k < m && sum <= N; k++){
| ^