Problem | lunchbox |
---|---|
User | lingfei123 |
Submission Time | 2023-11-09 10:42: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 unqualified-id 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:36: 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) {
| ^~