Problem | archaeologist |
---|---|
User | Minhanh |
Submission Time | 2023-03-13 10:18:49 |
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:20:24: error: unable to deduce ‘auto’ from ‘dfs.std::stack<std::pair<int, int> >::top’
20 | auto lol = dfs.top;
| ^~~
archaeologist.cpp:20:24: note: couldn’t deduce template parameter ‘auto’
archaeologist.cpp:27:30: error: no matching function for call to ‘std::stack<std::pair<int, int> >::push(<brace-enclosed initializer list>)’
27 | dfs.push({i,node});
| ^
In file included from /usr/include/c++/9/stack:61,
from archaeologist.cpp:4:
/usr/include/c++/9/bits/stl_stack.h:233:7: note: candidate: ‘void std::stack<_Tp, _Sequence>::push(const value_type&) [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, in