In file included from /usr/include/c++/10/bits/specfun.h:45,
from /usr/include/c++/10/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
from factories.cpp:2:
/usr/include/c++/10/bits/stl_algobase.h: In instantiation of 'typename __gnu_cxx::__enable_if<(! std::__is_scalar<_Tp>::__value), void>::__type std::__fill_a1(_ForwardIterator, _ForwardIterator, const _Tp&) [with _ForwardIterator = std::array<long long int, 2>*; _Tp = std::pair<int, int>; typename __gnu_cxx::__enable_if<(! std::__is_scalar<_Tp>::__value), void>::__type = void]':
/usr/include/c++/10/bits/stl_algobase.h:914:21: required from 'void std::__fill_a(_FIte, _FIte, const _Tp&) [with _FIte = std::array<long long int, 2>*; _Tp = std::pair<int, int>]'
/usr/include/c++/10/bits/stl_algobase.h:944:20: required from 'void std::fill(_ForwardIterator, _ForwardIterator, const _Tp&) [with _ForwardIterator = std::array<long long int, 2>*; _Tp = std::pair<int, int>]'
factories.cpp:83:40: required from here
/usr/include/c++/10/bits/stl_algobase.h:861:11: error: no match for 'operator=' (operand types are 'std::array<long long int, 2>' and 'const std::pair<int, int>')
861 | *__first = __value;
| ~~~~~~~~~^~~~~~~~~
In file included from /usr/include/c++/10/tuple:39,
from /usr/include/c++/10/functional:54,
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 factories.cpp:2:
/usr/include/c++/10/array:94:12: note: candidate: 'constexpr std::array<long long int, 2>& std::array<long long int, 2>::operator=(const std::array<long long int, 2>&)'
94 | struct array
| ^~~~~
/usr/include/c++/10/array:94:12: note: no known conversion for argument 1 from 'const std::pair<int, int>' to 'const std::array<long long int, 2>&'
/usr/include/c++/10/array:94:12: note: candidate: 'constexpr std::array<long long int, 2>& std::array<long long int, 2>::operator=(std::array<long long int, 2>&&)'
/usr/include/c++/10/array:94:12: note: no known conversion for argument 1 from 'const std::pair<int, int>' to 'std::array<long long int, 2>&&'