Problem lualectures
User Henries
Submission Time 2024-10-23 22:13:01
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:24:23: error: ‘std::set<std::pair<long long int, long long int>, std::greater<std::pair<long long int, long long int> > >::iterator’ {aka ‘struct std::_Rb_tree_const_iterator<std::pair<long long int, long long int> >’} has no member named ‘first’
24 | *available.begin().first = currentend;
| ^~~~~
lualectures.cpp:25:40: error: ‘std::set<std::pair<long long int, long long int>, std::greater<std::pair<long long int, long long int> > >::iterator’ {aka ‘struct std::_Rb_tree_const_iterator<std::pair<long long int, long long int> >’} has no member named ‘second’
25 | output.push_back(*available.begin().second);
| ^~~~~~