| Problem | ring2 |
|---|---|
| User | kiwiwi |
| Submission Time | 2026-02-22 14:47:18 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
ring2.cpp: In function ‘ll compute_max_utility(int, const std::vector<std::vector<int> >&)’:
ring2.cpp:61:47: error: no match for call to ‘(std::function<long long int(int)>) (std::function<long long int(int)>&, int&)’
61 | for (int c = 0; c < scc_cnt; c++) dp(dp, c);
| ^
In file included from /usr/include/c++/9/functional:59,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from ring2.cpp:1:
/usr/include/c++/9/bits/std_function.h:683:5: note: candidate: ‘_Res std::function<_Res(_ArgTypes ...)>::operator()(_ArgTypes ...) const [with _Res = long long int; _ArgTypes = {int}]’
683 | function<_Res(_ArgTypes...)>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/std_fu