nile.cpp: In constructor 'dsu::dsu(const std::vector<long long int>&)':
nile.cpp:11:13: error: no matching function for call to 'iota(std::vector<long long int>::iterator, std::vector<long long int>::iterator)'
11 | iota(cls.begin(),cls.end());
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/numeric:62,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:84,
from nile.cpp:1:
/usr/include/c++/11/bits/stl_numeric.h:88:5: note: candidate: 'template<class _ForwardIterator, class _Tp> constexpr void std::iota(_ForwardIterator, _ForwardIterator, _Tp)'
88 | iota(_ForwardIterator __first, _ForwardIterator __last, _Tp __value)
| ^~~~
/usr/include/c++/11/bits/stl_numeric.h:88:5: note: template argument deduction/substitution failed:
nile.cpp:11:13: note: candidate expects 3 arguments, 2 provided
11 | iota(cls.begin(),cls.end());
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~
nile.cpp:15:26: error: no match for 'operator=' (operand types are 'std::array<std::vector<long long int>, 2>::value_type' {aka 'std::vector<long long int>'} and 'const value_type' {aka 'const long long int'})
15 | mi[i&1] = a[i];
| ^
In file included from /usr/include/c++/11/vector:72,
from /usr/include/c++/11/functional:62,
from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from nile.cpp:1:
/usr/include/c++/11/bits/vector.tcc:198:5: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = long long int; _Alloc = std::allocator<long long int>]'
198 | vector<_Tp, _Alloc>::
| ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/vector.tcc:199:42: note: no known conversion for argument 1 from 'const value_type' {aka 'const long long int'} to 'const std::vector<long long int>&'
199 | operator=(const vector<_Tp, _Alloc>& __x)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/11/vector:67,
from /usr/include/c++/11/functional:62,
from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from nile.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:709:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = long long int; _Alloc = std::allocator<long long int>]'
709 | operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
| ^~~~~~~~
/usr/include/c++/11/bits/stl_vector.h:709:26: note: no known conversion for argument 1 from 'const value_type' {aka 'const long long int'} to 'std::vector<long long int>&&'
709 | operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
| ~~~~~~~~~^~~
/usr/include/c++/11/bits/stl_vector.h:730:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = long long int; _Alloc = std::allocator<long long int>]'
730 | operator=(initializer_list<value_type> __l)
| ^~~~~~~~
/usr/include/c++/11/bits/stl_vector.h:730:46: note: no known conversion for argument 1 from 'const value_type' {aka 'const long long int'} to 'std::initializer_list<long long int>'
730 | operator=(initializer_list<value_type> __l)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~