| Problem | lunchbox |
|---|---|
| User | DaPeter |
| Submission Time | 2026-01-19 12:03:18 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:11:11: 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>; _Compare = std::greater<long long int>; std::priority_queue<_Tp, _Sequence, _Compare>::const_reference = const long long int&]’ (did you forget the ‘()’ ?)
11 | num+=pq.top;
| ~~~^~~
| ()