Problem election_joi22
User Ok
Submission Time 2023-12-19 16:41:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

election_joi22.cpp: In function ‘int main()’:
election_joi22.cpp:60:188: error: no matching function for call to ‘min(double&, long double)’
60 | memo[j][k] = min(memo[j - 1][k], memo[j - 1][k - 1] + A[v[j].second]/(long double)(i+1) + pre[i + k][k] - pre[j][k] - (pre[i + k - 1][k - 1] - pre[j - 1][k - 1]) );
| ^
In file included from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from election_joi22.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:198:5: note: candidate: ‘template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)’
198 | min(const _Tp& __a, const _Tp& __b)
|