Problem archaeologist
User Fosksjdkskzjskskzk
Submission Time 2025-03-05 12:25:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

archaeologist.cpp: In function ‘void archaeologist(int, int, int, std::vector<int>, int, std::vector<int>)’:
archaeologist.cpp:35:13: error: ‘pair’ was not declared in this scope; did you mean ‘std::pair’?
35 | pair<int,vector<int>> x;
| ^~~~
| std::pair
In file included from /usr/include/c++/9/utility:70,
from archaeologist.cpp:1:
/usr/include/c++/9/bits/stl_pair.h:208:12: note: ‘std::pair’ declared here
208 | struct pair
| ^~~~
archaeologist.cpp:35:18: error: expected primary-expression before ‘int’
35 | pair<int,vector<int>> x;
| ^~~
archaeologist.cpp:36:13: error: ‘x’ was not declared in this scope
36 | x=take_path(zeroPath);
| ^
archaeologist.cpp:41:13: error: ‘x’ was not declared in this scope
41 | x=take_path(maxLightPa