worldmap.cpp: In function 'bool dfs(int)':
worldmap.cpp:29:5: error: reference to 'count' is ambiguous
29 | count++;
| ^~~~~
In file included from /usr/include/c++/11/vector:62,
from worldmap.h:1,
from worldmap.cpp:1:
/usr/include/c++/11/bits/stl_algo.h:4059:5: note: candidates are: 'template<class _IIter, class _Tp> constexpr typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&)'
4059 | count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
| ^~~~~
worldmap.cpp:11:5: note: 'int count'
11 | int count = 0;
| ^~~~~
worldmap.cpp:31:9: error: reference to 'count' is ambiguous
31 | if (count % 2) {
| ^~~~~
In file included from /usr/include/c++/11/vector:62,
from worldmap.h:1,
from worldmap.cpp:1:
/usr/include/c++/11/bits/stl_algo.h:4059:5: note: candidates are: 'template<class _IIter, class _Tp> constexpr typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&)'
4059 | count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
| ^~~~~
worldmap.cpp:11:5: note: 'int count'
11 | int count = 0;
| ^~~~~