Problem | archaeologist |
---|---|
User | Minhanh |
Submission Time | 2023-03-13 10:19:37 |
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:38: error: conversion from ‘<unresolved overloaded function type>’ to non-scalar type ‘std::pair<int, int>’ requested
20 | std::pair<int,int> lol = dfs.top;
| ~~~~^~~
archaeologist.cpp:26:30: error: no match for ‘operator!=’ (operand types are ‘std::vector<int>’ and ‘int’)
26 | for(auto i: adj) if(i!=parent){
| ~^~~~~~~~
| | |
| | int
| std::vector<int>
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:461:5: note: candidate: ‘template<class _T1, class _T2>