Problem archaeologist
User Minhanh
Submission Time 2023-03-13 10:16:39
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:15:5: error: ‘stack’ was not declared in this scope
15 | stack<pair<int,int>> dfs;
| ^~~~~
archaeologist.cpp:15:11: error: ‘pair’ was not declared in this scope; did you mean ‘std::pair’?
15 | stack<pair<int,int>> dfs;
| ^~~~
| std::pair
In file included from /usr/include/c++/9/utility:70,
from archaeologist.h:1,
from archaeologist.cpp:1:
/usr/include/c++/9/bits/stl_pair.h:208:12: note: ‘std::pair’ declared here
208 | struct pair
| ^~~~
archaeologist.cpp:15:16: error: expected primary-expression before ‘int’
15 | stack<pair<int,int>> dfs;
| ^~~
archaeologist.cpp:16:5: error: ‘vector’ was not declared in this scope
16 |