Problem inspections
User justin271828
Submission Time 2025-12-07 23:12:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

inspections.cpp: In function ‘int32_t main()’:
inspections.cpp:35:33: error: invalid use of member function ‘std::priority_queue<_Tp, _Sequence, _Compare>::const_reference std::priority_queue<_Tp, _Sequence, _Compare>::top() const [with _Tp = std::pair<long long int, long long int>; _Sequence = std::vector<std::pair<long long int, long long int> >; _Compare = std::greater<std::pair<long long int, long long int> >; std::priority_queue<_Tp, _Sequence, _Compare>::const_reference = const std::pair<long long int, long long int>&]’ (did you forget the ‘()’ ?)
35 | while (!pq2.empty() && pq2.top.f == i-1) {
| ~~~~^~~
| ()
inspections.cpp:35:37: error: expected ‘)’ before ‘first’
35 | while (!pq2.empty() && pq2.top.f == i-1) {
| ~ ^
| )
inspect