| Problem | lunchbox |
|---|---|
| User | OMW |
| Submission Time | 2024-04-08 18:03:31 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:16:35: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
16 | if (min_element(list,list+M) <= N){
| ^
lunchbox.cpp:17:6: error: invalid operands of types ‘int’ and ‘int*’ to binary ‘operator-’
17 | N -= min_element(list,list+M);
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
lunchbox.cpp:17:32: error: in evaluation of ‘operator-=(int, int*)’
17 | N -= min_element(list,list+M);
| ^