Problem archaeologist
User simu
Submission Time 2024-04-16 10:23:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

archaeologist.cpp: In function ‘int clip0L(int)’:
archaeologist.cpp:19:35: error: ‘L’ was not declared in this scope
19 | return min( max( light , 0) , L);
| ^
archaeologist.cpp: In function ‘void archaeologist(int, int, int, std::vector<int>, int, std::vector<int>)’:
archaeologist.cpp:105:13: error: ‘set_light’ was not declared in this scope
105 | set_light(clip0L(L - leaves[curr] + numvisited + 1 ));
| ^~~~~~~~~
archaeologist.cpp:106:22: error: ‘take_path’ was not declared in this scope
106 | newpos = take_path(unec);
| ^~~~~~~~~
archaeologist.cpp:110:13: error: ‘set_light’ was not declared in this scope
110 | set_light(clip0L(L - left + 1));
| ^~~~~~~~~
archaeologist.cpp:111:22: error: ‘take_path’ was not declared in this scope
111 | newpos = take_path(exp);