Problem archaeologist
User Minhanh
Submission Time 2023-03-13 10:17:08
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:10: error: ‘stack’ is not a member of ‘std’
15 | std::stack<std::pair<int,int>> dfs;
| ^~~~~
archaeologist.cpp:2:1: note: ‘std::stack’ is defined in header ‘<stack>’; did you forget to ‘#include <stack>’?
1 | #include "archaeologist.h"
+++ |+#include <stack>
2 | #include <utility>
archaeologist.cpp:15:33: error: expected primary-expression before ‘>’ token
15 | std::stack<std::pair<int,int>> dfs;
| ^~
archaeologist.cpp:15:36: error: ‘dfs’ was not declared in this scope
15 | std::stack<std::pair<int,int>> dfs;
| ^~~
archaeologist.cpp:79:34: error: expected ‘;’ before ‘set_light’
79 | sumdel +=(expected-1