power.cpp: In function 'int dfs(int, int, int)':
power.cpp:20:29: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
20 | return dp[node][b] = max({ c1, c2, c3 });
| ~~~^~~~~~~~~~~~~~~~
In file included from /usr/include/c++/13/string:51,
from /usr/include/c++/13/bits/locale_classes.h:40,
from /usr/include/c++/13/bits/ios_base.h:41,
from /usr/include/c++/13/ios:44,
from /usr/include/c++/13/ostream:40,
from /usr/include/c++/13/iostream:41,
from power.cpp:1:
/usr/include/c++/13/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
257 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/13/bits/stl_algobase.h:257:5: note: template argument deduction/substitution failed:
power.cpp:20:29: note: candidate expects 2 arguments, 1 provided
20 | return dp[node][b] = max({ c1, c2, c3 });
| ~~~^~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
303 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/13/bits/stl_algobase.h:303:5: note: template argument deduction/substitution failed:
power.cpp:20:29: note: candidate expects 3 arguments, 1 provided
20 | return dp[node][b] = max({ c1, c2, c3 });
| ~~~^~~~~~~~~~~~~~~~