Problem | lualectures |
---|---|
User | wrizz69 |
Submission Time | 2024-05-27 21:05:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lualectures.cpp: In function ‘int32_t main()’:
lualectures.cpp:33:46: error: cannot resolve overloaded function ‘index’ based on conversion to type ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’}
33 | hallAssignments[lecture.index] = index;
| ^~~~~
lualectures.cpp:34:41: error: no matching function for call to ‘std::priority_queue<std::pair<long long int, long long int>, std::vector<std::pair<long long int, long long int> >, std::greater<std::pair<long long int, long long int> > >::push(<brace-enclosed initializer list>)’
34 | pq.push({lecture.end, index});
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from lualectures.cpp