Problem lualectures
User Henries
Submission Time 2024-10-23 22:06:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lualectures.cpp: In function ‘void solve(std::priority_queue<std::pair<long long int, long long int> >)’:
lualectures.cpp:10:12: error: ‘class std::priority_queue<std::pair<long long int, long long int>, std::vector<std::pair<long long int, long long int>, std::allocator<std::pair<long long int, long long int> > >, std::greater<std::pair<long long int, long long int> > >’ has no member named ‘push_back’
10 | available.push_back({prev.second,1});
| ^~~~~~~~~
lualectures.cpp:23:26: error: assignment of member ‘std::pair<long long int, long long int>::first’ in read-only object
23 | available.top().first = currentend;
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~