| Problem | barbecue |
|---|---|
| User | haroldpyh |
| Submission Time | 2026-03-13 18:15:25 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
barbecue.cpp: In function ‘int main()’:
barbecue.cpp:39:19: error: invalid use of member function ‘std::priority_queue<_Tp, _Sequence, _Compare>::const_reference std::priority_queue<_Tp, _Sequence, _Compare>::top() const [with _Tp = long long int; _Sequence = std::vector<long long int, std::allocator<long long int> >; _Compare = std::less<long long int>; std::priority_queue<_Tp, _Sequence, _Compare>::const_reference = const long long int&]’ (did you forget the ‘()’ ?)
39 | ans += totalVal.top;
| ~~~~~~~~~^~~
| ()
barbecue.cpp:40:17: error: expected ‘;’ before ‘}’ token
40 | totalVal.pop()
| ^
| ;
41 | }
| ~