Problem lunchbox
User yixiin26
Submission Time 2023-11-09 10:20:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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