Problem | lunchbox |
---|---|
User | ForsakenPBJ |
Submission Time | 2024-04-01 11:48:57 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:12:12: error: request for member ‘begin’ in ‘list’, which is of non-class type ‘int [m]’
12 | sort(list.begin() , list.end());
| ^~~~~
lunchbox.cpp:12:27: error: request for member ‘end’ in ‘list’, which is of non-class type ‘int [m]’
12 | sort(list.begin() , list.end());
| ^~~
lunchbox.cpp:12:2: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
12 | sort(list.begin() , list.end());
| ^~~~
| qsort
lunchbox.cpp:17:6: error: expected ‘;’ before ‘}’ token
17 | a++
| ^
| ;
18 | }
| ~
lunchbox.cpp:19:10: error: ‘total’ was not declared in this scope
19 | cout << total;
| ^~~~~