Problem lunchbox
User G
Submission Time 2024-12-09 15:01:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:7:10: error: expected ‘;’ before ‘-’ token
7 | for(ll i-0;i<m;i++){
| ^
| ;
lunchbox.cpp:7:16: error: expected ‘)’ before ‘;’ token
7 | for(ll i-0;i<m;i++){
| ~ ^
| )
lunchbox.cpp:7:17: error: ‘i’ was not declared in this scope
7 | for(ll i-0;i<m;i++){
| ^
lunchbox.cpp:13:9: error: ‘class std::priority_queue<long long int>’ has no member named ‘front’
13 | n-=pq.front();
| ^~~~~