Problem | lunchbox |
---|---|
User | EelNai |
Submission Time | 2023-02-28 12:56:28 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:11:13: error: ‘lunchg’ was not declared in this scope; did you mean ‘lunch’?
11 | sort(lunch,lunchg + m);
| ^~~~~~
| lunch
lunchbox.cpp:13:2: error: expected ‘,’ or ‘;’ before ‘for’
13 | for (total=0 ; j < m && total < N; j++) {
| ^~~
lunchbox.cpp:13:26: error: ‘total’ was not declared in this scope
13 | for (total=0 ; j < m && total < N; j++) {
| ^~~~~
lunchbox.cpp:13:40: error: expected ‘;’ before ‘)’ token
13 | for (total=0 ; j < m && total < N; j++) {
| ^
| ;