Problem | voting |
---|---|
User | Henries |
Submission Time | 2024-10-23 08:48:48 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
voting.cpp: In function ‘int main()’:
voting.cpp:27:4: error: ‘required’ was not declared in this scope
27 | required[i] = m;
| ^~~~~~~~
voting.cpp:28:15: error: no matching function for call to ‘std::priority_queue<std::pair<long long int, long long int> >::push(long long int&, long long int&)’
28 | pq.push(m,p);
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from voting.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:627:7: note: candidate: ‘void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = std::pair<long long int, long long int>; _Sequence = std::vector<std::pair<long long int, long long int>, std::allocator<std::pair<long long int, long long int> > >; _Compare = std::less<std::pair<long long int, long long int> >; std::pr