catdog.cpp: In function 'void dfs(int, int)':
catdog.cpp:15:5: error: 'd' was not declared in this scope
15 | d[v][st[v]] = 0;
| ^
catdog.cpp:24:80: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
24 | d[v][st[v]] += min({d[to][0], d[to][1] + 1, d[to][2] + 1, d[to][st[v]]});
| ^
In file included from /usr/include/c++/9/vector:60,
from catdog.h:3,
from catdog.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:198:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
198 | min(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/9/bits/stl_algobase.h:198:5: note: template argument deduction/substitution failed:
catdog.cpp:24:80: note: candidate expects 2 arguments, 1 provided
24 | d[v][st[v]] += min({d[to][0], d[to][1] + 1, d[to][2] + 1, d[to][st[v]]});
| ^
In file included from /usr/include/c++/9/vector:60,
from catdog.h:3,
from catdog.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:246:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
246 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/9/bits/stl_algobase.h:246:5: note: template argument deduction/substitution failed:
catdog.cpp:24:80: note: candidate expects 3 arguments, 1 provided
24 | d[v][st[v]] += min({d[to][0], d[to][1] + 1, d[to][2] + 1, d[to][st[v]]});
| ^
catdog.cpp:26:76: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
26 | d[v][1] += min({d[to][0], d[to][1] + 1, d[to][2] + 1, d[to][1]});
| ^
In file included from /usr/include/c++/9/vector:60,
from catdog.h:3,
from catdog.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:198:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
198 | min(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/9/bits/stl_algobase.h:198:5: note: template argument deduction/substitution failed:
catdog.cpp:26:76: note: candidate expects 2 arguments, 1 provided
26 | d[v][1] += min({d[to][0], d[to][1] + 1, d[to][2] + 1, d[to][1]});
| ^
In file included from /usr/include/c++/9/vector:60,
from catdog.h:3,
from catdog.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:246:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
246 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/9/bits/stl_algobase.h:246:5: note: template argument deduction/substitution failed:
catdog.cpp:26:76: note: candidate expects 3 arguments, 1 provided
26 | d[v][1] += min({d[to][0], d[to][1] + 1, d[to][2] + 1, d[to][1]});
| ^
catdog.cpp:27:76: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
27 | d[v][1] += min({d[to][0], d[to][1] + 1, d[to][2] + 1, d[to][2]});
| ^
In file included from /usr/include/c++/9/vector:60,
from catdog.h:3,
from catdog.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:198:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
198 | min(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/9/bits/stl_algobase.h:198:5: note: template argument deduction/substitution failed:
catdog.cpp:27:76: note: candidate expects 2 arguments, 1 provided
27 | d[v][1] += min({d[to][0], d[to][1] + 1, d[to][2] + 1, d[to][2]});
| ^
In file included from /usr/include/c++/9/vector:60,
from catdog.h:3,
from catdog.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:246:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
246 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/9/bits/stl_algobase.h:246:5: note: template argument deduction/substitution failed:
catdog.cpp:27:76: note: candidate expects 3 arguments, 1 provided
27 | d[v][1] += min({d[to][0], d[to][1] + 1, d[to][2] + 1, d[to][2]});
| ^
catdog.cpp: In function 'int ans()':
catdog.cpp:36:13: error: 'd' was not declared in this scope
36 | d[i][j] = INF;
| ^
catdog.cpp:40:17: error: 'd' was not declared in this scope
40 | return min({d[0][0], d[0][1], d[0][2]});
| ^
catdog.cpp:40:43: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
40 | return min({d[0][0], d[0][1], d[0][2]});
| ^
In file included from /usr/include/c++/9/vector:60,
from catdog.h:3,
from catdog.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:198:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
198 | min(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/9/bits/stl_algobase.h:198:5: note: template argument deduction/substitution failed:
catdog.cpp:40:43: note: candidate expects 2 arguments, 1 provided
40 | return min({d[0][0], d[0][1], d[0][2]});
| ^
In file included from /usr/include/c++/9/vector:60,
from catdog.h:3,
from catdog.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:246:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
246 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/9/bits/stl_algobase.h:246:5: note: template argument deduction/substitution failed:
catdog.cpp:40:43: note: candidate expects 3 arguments, 1 provided
40 | return min({d[0][0], d[0][1], d[0][2]});
| ^