Problem | lunchbox |
---|---|
User | JcYong |
Submission Time | 2024-06-19 14:41:09 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:18:13: error: expected ‘;’ before ‘}’ token
18 | pq.push(n)
| ^
| ;
19 | }
| ~
lunchbox.cpp:21:15: error: expected ‘;’ before ‘d’
21 | c = pq.top()
| ^
| ;
22 | d += c
| ~
lunchbox.cpp:26:2: error: ‘else’ without a previous ‘if’
26 | else if(d > a){
| ^~~~
lunchbox.cpp:30:1: error: expected ‘}’ at end of input
30 | }
| ^
lunchbox.cpp:3:11: note: to match this ‘{’
3 | int main(){
| ^