Problem lualectures
User Henries
Submission Time 2024-10-23 22:11:57
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:14:23: error: cannot convert ‘const std::pair<long long int, long long int>’ to ‘long long int’ in initialization
14 | long long element = *available.begin();
| ^~~~~~~~~~~~~~~~~~
| |
| const std::pair<long long int, long long int>
lualectures.cpp:15:32: error: request for member ‘first’ in ‘element’, which is of non-class type ‘long long int’
15 | long long smallest = element.first;
| ^~~~~
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’