feast.cpp: In function 'int main()':
feast.cpp:45:38: error: no matching function for call to 'round(std::array<double, 2>::value_type&, std::array<double, 2>::value_type&)'
45 | cout<< lint(round(dp[n][0], dp[n][1]) + mid * k)<<"\n";
| ^
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/10/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/c++config.h:518,
from /usr/include/c++/10/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
from feast.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:298:1: note: candidate: 'double round(double)'
298 | __MATHCALLX (round,, (_Mdouble_ __x), (__const__));
| ^~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:298:1: note: candidate expects 1 argument, 2 provided
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
from feast.cpp:1:
/usr/include/c++/10/cmath:1768:5: note: candidate: 'template<class _Tp> constexpr typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type std::round(_Tp)'
1768 | round(_Tp __x)
| ^~~~~
/usr/include/c++/10/cmath:1768:5: note: template argument deduction/substitution failed:
feast.cpp:45:38: note: candidate expects 1 argument, 2 provided
45 | cout<< lint(round(dp[n][0], dp[n][1]) + mid * k)<<"\n";
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
from feast.cpp:1:
/usr/include/c++/10/cmath:1760:3: note: candidate: 'constexpr long double std::round(long double)'
1760 | round(long double __x)
| ^~~~~
/usr/include/c++/10/cmath:1760:3: note: candidate expects 1 argument, 2 provided
/usr/include/c++/10/cmath:1756:3: note: candidate: 'constexpr float std::round(float)'
1756 | round(float __x)
| ^~~~~
/usr/include/c++/10/cmath:1756:3: note: candidate expects 1 argument, 2 provided