Problem archaeologist
User PlayVoltz
Submission Time 2024-02-28 14:36:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

archaeologist.cpp: In function ‘void archaeologist(long long int, long long int, long long int, std::vector<long long int>, long long int, std::vector<long long int>)’:
archaeologist.cpp:31:37: error: ‘node’ was not declared in this scope
31 | set_light(max({0ll, l-sum, l-leaf[node]+count}));
| ^~~~
archaeologist.cpp:31:49: error: no matching function for call to ‘max(<brace-enclosed initializer list>)’
31 | set_light(max({0ll, l-sum, l-leaf[node]+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/st