Problem | lunchbox |
---|---|
User | yiwei |
Submission Time | 2023-11-09 10:43:49 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp:4:5: error: expected constructor, destructor, or type conversion before ‘(’ token
4 | sort(A,A + m);
| ^
lunchbox.cpp:8:1: error: expected ‘,’ or ‘;’ before ‘for’
8 | for (int k = 0; k < m && sum <=N; k++){
| ^~~
lunchbox.cpp:8:17: error: ‘k’ does not name a type
8 | for (int k = 0; k < m && sum <=N; k++){
| ^
lunchbox.cpp:8:35: error: ‘k’ does not name a type
8 | for (int k = 0; k < m && sum <=N; k++){
| ^
lunchbox.cpp:13:2: error: expected unqualified-id before ‘if’
13 | }if (sum<= N) {
| ^~