Problem | lunchbox |
---|---|
User | Maggie |
Submission Time | 2023-11-09 10:28:43 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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++){
| ^
lunchbox.cpp:24:2: error: expected unqualified-id before ‘return’
24 | return 0;
| ^~~~~~
lunchbox.cpp:25:2: error: expected declaration before ‘}’ token
25 | }
| ^