Problem | archaeologist |
---|---|
User | PlayVoltz |
Submission Time | 2024-02-28 14:40:39 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
archaeologist.cpp: In function ‘void archaeologist(int, int, int, std::vector<int>, int, std::vector<int>)’:
archaeologist.cpp:31:44: error: no matching function for call to ‘max(<brace-enclosed initializer list>)’
31 | set_light(max({0, l-sum, l-leaf[c]+count}));
| ^
In file included from /usr/include/c++/9/vector:60,
from archaeologist.h:2,
from archaeologist.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:222:5: note: candidate: ‘template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)’
222 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/9/bits/stl_algobase.h:222:5: note: template argument deduction/substitution failed:
archaeologist.cpp:31:44: note: candidate expects 2 arguments, 1 provided
31 | set_light(max({0, l-sum, l-leaf[c]+count}));
|