Problem | archaeologist |
---|---|
User | Fosksjdkskzjskskzk |
Submission Time | 2025-03-07 08:29:12 |
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:38:14: error: ‘min’ was not declared in this scope; did you mean ‘std::min’?
38 | set_light(min(light, depth - 1));
| ^~~
| std::min
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:246:5: note: ‘std::min’ declared here
246 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~