training.cpp: In function 'void calc_dp(int64_t, int64_t)':
training.cpp:86:37: error: no match for 'operator=' (operand types are 'std::tuple<long int&, long int&>' and '__gnu_cxx::__alloc_traits<std::allocator<std::array<long int, 2> >, std::array<long int, 2> >::value_type' {aka 'std::array<long int, 2>'})
86 | for(;a!=u;tie(a,maskA)=par[a])score+=dp[a][maskA];
| ^
In file included 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 training.cpp:1:
/usr/include/c++/10/tuple:1173:7: note: candidate: 'std::tuple<_T1, _T2>& std::tuple<_T1, _T2>::operator=(typename std::conditional<__assignable<const _T1&, const _T2&>(), const std::tuple<_T1, _T2>&, const std::__nonesuch&>::type) [with _T1 = long int&; _T2 = long int&; typename std::conditional<__assignable<const _T1&, const _T2&>(), const std::tuple<_T1, _T2>&, const std::__nonesuch&>::type = const std::tuple<long int&, long int&>&]'
1173 | operator=(typename conditional<__assignable<const _T1&, const _T2&>(),
| ^~~~~~~~
/usr/include/c++/10/tuple:1175:35: note: no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<std::array<long int, 2> >, std::array<long int, 2> >::value_type' {aka 'std::array<long int, 2>'} to 'std::conditional<true, const std::tuple<long int&, long int&>&, const std::__nonesuch&>::type' {aka 'const std::tuple<long int&, long int&>&'}
1173 | operator=(typename conditional<__assignable<const _T1&, const _T2&>(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1174 | const tuple&,
| ~~~~~~~~~~~~~
1175 | const __nonesuch&>::type __in)
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
/usr/include/c++/10/tuple:1184:7: note: candidate: 'std::tuple<_T1, _T2>& std::tuple<_T1, _T2>::operator=(typename std::conditional<__assignable<_T1, _T2>(), std::tuple<_T1, _T2>&&, std::__nonesuch&&>::type) [with _T1 = long int&; _T2 = long int&; typename std::conditional<__assignable<_T1, _T2>(), std::tuple<_T1, _T2>&&, std::__nonesuch&&>::type = std::tuple<long int&, long int&>&&]'
1184 | operator=(typename conditional<__assignable<_T1, _T2>(),
| ^~~~~~~~
/usr/include/c++/10/tuple:1186:30: note: no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<std::array<long int, 2> >, std::array<long int, 2> >::value_type' {aka 'std::array<long int, 2>'} to 'std::conditional<true, std::tuple<long int&, long int&>&&, std::__nonesuch&&>::type' {aka 'std::tuple<long int&, long int&>&&'}
1184 | operator=(typename conditional<__assignable<_T1, _T2>(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1185 | tuple&&,
| ~~~~~~~~
1186 | __nonesuch&&>::type __in)
| ~~~~~~~~~~~~~~~~~~~~^~~~
/usr/include/c++/10/tuple:1196:2: note: candidate: 'template<class _U1, class _U2> std::__enable_if_t<__assignable<const _U1&, const _U2&>(), std::tuple<_T1, _T2>&> std::tuple<_T1, _T2>::operator=(const std::tuple<_U1, _U2>&) [with _U1 = _U1; _U2 = _U2; _T1 = long int&; _T2 = long int&]'
1196 | operator=(const tuple<_U1, _U2>& __in)
| ^~~~~~~~
/usr/include/c++/10/tuple:1196:2: note: template argument deduction/substitution failed:
training.cpp:86:37: note: '__gnu_cxx::__alloc_traits<std::allocator<std::array<long int, 2> >, std::array<long int, 2> >::value_type' {aka 'std::array<long int, 2>'} is not derived from 'const std::tuple<_T1, _T2>'
86 | for(;a!=u;tie(a,maskA)=par[a])score+=dp[a][maskA];
| ^
In file included 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 training.cpp:1:
/usr/include/c++/10/tuple:1206:2: note: candidate: 'template<class _U1, class _U2> std::__enable_if_t<__assignable<_U1, _U2>(), std::tuple<_T1, _T2>&> std::tuple<_T1, _T2>::operator=(std::tuple<_U1, _U2>&&) [with _U1 = _U1; _U2 = _U2; _T1 = long int&; _T2 = long int&]'
1206 | operator=(tuple<_U1, _U2>&& __in)
| ^~~~~~~~
/usr/include/c++/10/tuple:1206:2: note: template argument deduction/substitution failed:
training.cpp:86:37: note: '__gnu_cxx::__alloc_traits<std::allocator<std::array<long int, 2> >, std::array<long int, 2> >::value_type' {aka 'std::array<long int, 2>'} is not derived from 'std::tuple<_T1, _T2>'
86 | for(;a!=u;tie(a,maskA)=par[a])score+=dp[a][maskA];
| ^
In file included 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 training.cpp:1:
/usr/include/c++/10/tuple:1216:2: note: candidate: 'template<class _U1, class _U2> std::__enable_if_t<__assignable<const _U1&, const _U2&>(), std::tuple<_T1, _T2>&> std::tuple<_T1, _T2>::operator=(const std::pair<_U1, _U2>&) [with _U1 = _U1; _U2 = _U2; _T1 = long int&; _T2 = long int&]'
1216 | operator=(const pair<_U1, _U2>& __in)
| ^~~~~~~~
/usr/include/c++/10/tuple:1216:2: note: template argument deduction/substitution failed:
training.cpp:86:37: note: '__gnu_cxx::__alloc_traits<std::allocator<std::array<long int, 2> >, std::array<long int, 2> >::value_type' {aka 'std::array<long int, 2>'} is not derived from 'const std::pair<_T1, _T2>'
86 | for(;a!=u;tie(a,maskA)=par[a])score+=dp[a][maskA];
| ^
In file included 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 training.cpp:1:
/usr/include/c++/10/tuple:1227:2: note: candidate: 'template<class _U1, class _U2> std::__enable_if_t<__assignable<_U1, _U2>(), std::tuple<_T1, _T2>&> std::tuple<_T1, _T2>::operator=(std::pair<_U1, _U2>&&) [with _U1 = _U1; _U2 = _U2; _T1 = long int&; _T2 = long int&]'
1227 | operator=(pair<_U1, _U2>&& __in)
| ^~~~~~~~
/usr/include/c++/10/tuple:1227:2: note: template argument deduction/substitution failed:
training.cpp:86:37: note: '__gnu_cxx::__alloc_traits<std::allocator<std::array<long int, 2> >, std::array<long int, 2> >::value_type' {aka 'std::array<long int, 2>'} is not derived from 'std::pair<_T1, _T2>'
86 | for(;a!=u;tie(a,maskA)=par[a])score+=dp[a][maskA];
| ^
training.cpp:87:37: error: no match for 'operator=' (operand types are 'std::tuple<long int&, long int&>' and '__gnu_cxx::__alloc_traits<std::allocator<std::array<long int, 2> >, std::array<long int, 2> >::value_type' {aka 'std::array<long int, 2>'})
87 | for(;b!=u;tie(b,maskB)=par[b])score+=dp[b][maskB];
| ^
In file included 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 training.cpp:1:
/usr/include/c++/10/tuple:1173:7: note: candidate: 'std::tuple<_T1, _T2>& std::tuple<_T1, _T2>::operator=(typename std::conditional<__assignable<const _T1&, const _T2&>(), const std::tuple<_T1, _T2>&, const std::__nonesuch&>::type) [with _T1 = long int&; _T2 = long int&; typename std::conditional<__assignable<const _T1&, const _T2&>(), const std::tuple<_T1, _T2>&, const std::__nonesuch&>::type = const std::tuple<long int&, long int&>&]'
1173 | operator=(typename conditional<__assignable<const _T1&, const _T2&>(),
| ^~~~~~~~
/usr/include/c++/10/tuple:1175:35: note: no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<std::array<long int, 2> >, std::array<long int, 2> >::value_type' {aka 'std::array<long int, 2>'} to 'std::conditional<true, const std::tuple<long int&, long int&>&, const std::__nonesuch&>::type' {aka 'const std::tuple<long int&, long int&>&'}
1173 | operator=(typename conditional<__assignable<const _T1&, const _T2&>(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1174 | const tuple&,
| ~~~~~~~~~~~~~
1175 | const __nonesuch&>::type __in)
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
/usr/include/c++/10/tuple:1184:7: note: candidate: 'std::tuple<_T1, _T2>& std::tuple<_T1, _T2>::operator=(typename std::conditional<__assignable<_T1, _T2>(), std::tuple<_T1, _T2>&&, std::__nonesuch&&>::type) [with _T1 = long int&; _T2 = long int&; typename std::conditional<__assignable<_T1, _T2>(), std::tuple<_T1, _T2>&&, std::__nonesuch&&>::type = std::tuple<long int&, long int&>&&]'
1184 | operator=(typename conditional<__assignable<_T1, _T2>(),
| ^~~~~~~~
/usr/include/c++/10/tuple:1186:30: note: no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<std::array<long int, 2> >, std::array<long int, 2> >::value_type' {aka 'std::array<long int, 2>'} to 'std::conditional<true, std::tuple<long int&, long int&>&&, std::__nonesuch&&>::type' {aka 'std::tuple<long int&, long int&>&&'}
1184 | operator=(typename conditional<__assignable<_T1, _T2>(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1185 | tuple&&,
| ~~~~~~~~
1186 | __nonesuch&&>::type __in)
| ~~~~~~~~~~~~~~~~~~~~^~~~
/usr/include/c++/10/tuple:1196:2: note: candidate: 'template<class _U1, class _U2> std::__enable_if_t<__assignable<const _U1&, const _U2&>(), std::tuple<_T1, _T2>&> std::tuple<_T1, _T2>::operator=(const std::tuple<_U1, _U2>&) [with _U1 = _U1; _U2 = _U2; _T1 = long int&; _T2 = long int&]'
1196 | operator=(const tuple<_U1, _U2>& __in)
| ^~~~~~~~
/usr/include/c++/10/tuple:1196:2: note: template argument deduction/substitution failed:
training.cpp:87:37: note: '__gnu_cxx::__alloc_traits<std::allocator<std::array<long int, 2> >, std::array<long int, 2> >::value_type' {aka 'std::array<long int, 2>'} is not derived from 'const std::tuple<_T1, _T2>'
87 | for(;b!=u;tie(b,maskB)=par[b])score+=dp[b][maskB];
| ^
In file included 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 training.cpp:1:
/usr/include/c++/10/tuple:1206:2: note: candidate: 'template<class _U1, class _U2> std::__enable_if_t<__assignable<_U1, _U2>(), std::tuple<_T1, _T2>&> std::tuple<_T1, _T2>::operator=(std::tuple<_U1, _U2>&&) [with _U1 = _U1; _U2 = _U2; _T1 = long int&; _T2 = long int&]'
1206 | operator=(tuple<_U1, _U2>&& __in)
| ^~~~~~~~
/usr/include/c++/10/tuple:1206:2: note: template argument deduction/substitution failed:
training.cpp:87:37: note: '__gnu_cxx::__alloc_traits<std::allocator<std::array<long int, 2> >, std::array<long int, 2> >::value_type' {aka 'std::array<long int, 2>'} is not derived from 'std::tuple<_T1, _T2>'
87 | for(;b!=u;tie(b,maskB)=par[b])score+=dp[b][maskB];
| ^
In file included 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 training.cpp:1:
/usr/include/c++/10/tuple:1216:2: note: candidate: 'template<class _U1, class _U2> std::__enable_if_t<__assignable<const _U1&, const _U2&>(), std::tuple<_T1, _T2>&> std::tuple<_T1, _T2>::operator=(const std::pair<_U1, _U2>&) [with _U1 = _U1; _U2 = _U2; _T1 = long int&; _T2 = long int&]'
1216 | operator=(const pair<_U1, _U2>& __in)
| ^~~~~~~~
/usr/include/c++/10/tuple:1216:2: note: template argument deduction/substitution failed:
training.cpp:87:37: note: '__gnu_cxx::__alloc_traits<std::allocator<std::array<long int, 2> >, std::array<long int, 2> >::value_type' {aka 'std::array<long int, 2>'} is not derived from 'const std::pair<_T1, _T2>'
87 | for(;b!=u;tie(b,maskB)=par[b])score+=dp[b][maskB];
| ^
In file included 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 training.cpp:1:
/usr/include/c++/10/tuple:1227:2: note: candidate: 'template<class _U1, class _U2> std::__enable_if_t<__assignable<_U1, _U2>(), std::tuple<_T1, _T2>&> std::tuple<_T1, _T2>::operator=(std::pair<_U1, _U2>&&) [with _U1 = _U1; _U2 = _U2; _T1 = long int&; _T2 = long int&]'
1227 | operator=(pair<_U1, _U2>&& __in)
| ^~~~~~~~
/usr/include/c++/10/tuple:1227:2: note: template argument deduction/substitution failed:
training.cpp:87:37: note: '__gnu_cxx::__alloc_traits<std::allocator<std::array<long int, 2> >, std::array<long int, 2> >::value_type' {aka 'std::array<long int, 2>'} is not derived from 'std::pair<_T1, _T2>'
87 | for(;b!=u;tie(b,maskB)=par[b])score+=dp[b][maskB];
| ^