Main.cpp: In function 'void solve()':
Main.cpp:93:20: error: no matching function for call to 'std::vector<bool>::assign(long long int&)'
93 | visited.assign(n);
| ^
In file included from /usr/include/c++/10/vector:68,
from /usr/include/c++/10/functional:62,
from /usr/include/c++/10/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/10/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from Main.cpp:1:
/usr/include/c++/10/bits/stl_bvector.h:808:7: note: candidate: 'void std::vector<bool, _Alloc>::assign(std::vector<bool, _Alloc>::size_type, const bool&) [with _Alloc = std::allocator<bool>; std::vector<bool, _Alloc>::size_type = long unsigned int]'
808 | assign(size_type __n, const bool& __x)
| ^~~~~~
/usr/include/c++/10/bits/stl_bvector.h:808:7: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/10/bits/stl_bvector.h:815:2: note: candidate: 'template<class _InputIterator, class> void std::vector<bool, _Alloc>::assign(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _Alloc = std::allocator<bool>]'
815 | assign(_InputIterator __first, _InputIterator __last)
| ^~~~~~
/usr/include/c++/10/bits/stl_bvector.h:815:2: note: template argument deduction/substitution failed:
Main.cpp:93:20: note: candidate expects 2 arguments, 1 provided
93 | visited.assign(n);
| ^
In file included from /usr/include/c++/10/vector:68,
from /usr/include/c++/10/functional:62,
from /usr/include/c++/10/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/10/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from Main.cpp:1:
/usr/include/c++/10/bits/stl_bvector.h:829:7: note: candidate: 'void std::vector<bool, _Alloc>::assign(std::initializer_list<bool>) [with _Alloc = std::allocator<bool>]'
829 | assign(initializer_list<bool> __l)
| ^~~~~~
/usr/include/c++/10/bits/stl_bvector.h:829:37: note: no known conversion for argument 1 from 'long long int' to 'std::initializer_list<bool>'
829 | assign(initializer_list<bool> __l)
| ~~~~~~~~~~~~~~~~~~~~~~~^~~