crocodile.cpp: In function 'int travel_plan(int, int, int (*)[2], int*, int, int*)':
crocodile.cpp:52:18: error: no match for 'operator=' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<std::set<int> >, std::set<int> >::value_type' {aka 'std::set<int>'} and 'bool')
52 | visited[0] = true;
| ^~~~
In file included from /usr/include/c++/10/set:61,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:87,
from crocodile.cpp:6:
/usr/include/c++/10/bits/stl_set.h:298:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>& std::set<_Key, _Compare, _Alloc>::operator=(const std::set<_Key, _Compare, _Alloc>&) [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>]'
298 | operator=(const set&) = default;
| ^~~~~~~~
/usr/include/c++/10/bits/stl_set.h:298:17: note: no known conversion for argument 1 from 'bool' to 'const std::set<int>&'
298 | operator=(const set&) = default;
| ^~~~~~~~~~
/usr/include/c++/10/bits/stl_set.h:302:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>& std::set<_Key, _Compare, _Alloc>::operator=(std::set<_Key, _Compare, _Alloc>&&) [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>]'
302 | operator=(set&&) = default;
| ^~~~~~~~
/usr/include/c++/10/bits/stl_set.h:302:17: note: no known conversion for argument 1 from 'bool' to 'std::set<int>&&'
302 | operator=(set&&) = default;
| ^~~~~
/usr/include/c++/10/bits/stl_set.h:316:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>& std::set<_Key, _Compare, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>]'
316 | operator=(initializer_list<value_type> __l)
| ^~~~~~~~
/usr/include/c++/10/bits/stl_set.h:316:46: note: no known conversion for argument 1 from 'bool' to 'std::initializer_list<int>'
316 | operator=(initializer_list<value_type> __l)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~