Problem lunchbox
User earthyeet
Submission Time 2025-07-29 22:39:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:12:18: error: ‘class std::priority_queue<int>’ has no member named ‘begin’
12 | sort(schools.begin(), schools.end());
| ^~~~~
lunchbox.cpp:12:35: error: ‘class std::priority_queue<int>’ has no member named ‘end’
12 | sort(schools.begin(), schools.end());
| ^~~
lunchbox.cpp:21:3: error: expected ‘,’ or ‘;’ before ‘sum’
21 | sum -= top;
| ^~~
lunchbox.cpp: At global scope:
lunchbox.cpp:29:1: error: expected declaration before ‘}’ token
29 | }
| ^