Problem lunchbox
User yiwei
Submission Time 2023-11-09 10:45:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp:1:5: error: expected constructor, destructor, or type conversion before ‘(’ token
1 | sort(A,A + m);
| ^
lunchbox.cpp:5:1: error: expected ‘,’ or ‘;’ before ‘for’
5 | for (int k = 0; k < m && sum <=N; k++){
| ^~~
lunchbox.cpp:5:17: error: ‘k’ does not name a type
5 | for (int k = 0; k < m && sum <=N; k++){
| ^
lunchbox.cpp:5:35: error: ‘k’ does not name a type
5 | for (int k = 0; k < m && sum <=N; k++){
| ^
lunchbox.cpp:10:2: error: expected unqualified-id before ‘if’
10 | }if (sum<= N) {
| ^~