Problem logs
User G
Submission Time 2024-03-11 09:50:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

logs.cpp: In function ‘int main()’:
logs.cpp:8:31: error: no matching function for call to ‘std::priority_queue<double>::priority_queue(ll&, int)’
8 | priority_queue<double> a(n,0);
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from logs.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:584:2: note: candidate: ‘template<class _InputIterator> std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue(_InputIterator, _InputIterator, const _Compare&, _Sequence&&)’
584 | priority_queue(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~~~~~~
/usr/include/c++/9/bits/stl_queue.h:584:2: note: template argument deduction/substitution failed:
logs.cpp:8:31: note: deduced conflicting types for parameter ‘_InputIterator’ (‘long long int’ and ‘int’)
8 | priority_queue<dou