Problem housevisit
User bribritt
Submission Time 2023-07-24 19:26:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

housevisit.cpp: In function ‘int find_cost(int, int, int)’:
housevisit.cpp:37:186: error: no matching function for call to ‘min(__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type&, int)’
37 | REP(i,lb,ub) dp[items][x][childs]=min(dp[items][x][childs], find_cost(i,adj[x][childs].fi, adj[adj[x][childs].fi].size()-1)+find_cost(items-i, x, childs-1)+(bool)i*adj[x][childs].se);
| ^
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 housevisit.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:198:5: note: candidate: ‘template<class _Tp> constexpr const _Tp& std::min(cons