Problem lunchbox
User AdamAdnan1C
Submission Time 2023-05-17 17:27:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp:28:1: error: ‘The’ does not name a type
28 | The idea is to first read in the number of lunch boxes N and the number of schools m, and then read in the values of ki for each school and store them in a vector k. We then sort the schools in descending order of ki using sort() with k.rbegin() and k.rend() as arguments. This way, we can try to give as many lunch boxes as possible to the school with the largest ki first.
| ^~~