Utilizator |
Problema |
Data |
Compilator |
Scor |
|---|---|---|---|---|
31 Iulie 2024, 13:11 |
c++14 |
E.C. |
main.cpp:10:22: error: ‘AINT::node AINT::node::operator+(const AINT::node&, const AINT::node&)’ must have either zero or one argument
10 | node operator + (const node& lhs, const node& rhs) {
| ^~~~~~~~
main.cpp: In member function ‘void AINT::update(int64_t, int64_t, int64_t, int64_t, int64_t)’:
main.cpp:34:51: error: no match for ‘operator+’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<AINT::node>, AINT::node>::value_type’ {aka ‘AINT::node’} and ‘__gnu_cxx::__alloc_traits<std::allocator<AINT::node>, AINT::node>::value_type’ {aka ‘AINT::node’})
34 | aint[nod] = aint[nod * 2] + aint[nod * 2 + 1];
In file included from /usr/include/c++/11/bits/stl_algobase.h:67,
from /usr/include/c++/11/bits/char_traits.h:39,
from /usr/include/c++/11/ios:40,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/bits/stl_iterator.h:585:5: note: candidate: ‘template<class _Iterator> std::reverse_iterator<_Iterator> std::operator+(typename std::reverse_iterator<_Iterator>::difference_type, const std::reverse_iterator<_Iterator>&)’
585 | operator+(typename reverse_iterator<_Iterator>::difference_type __n,
| ^~~~~~~~
/usr/include/c++/11/bits/stl_iterator.h:585:5: note: template argument deduction/substitution failed:
main.cpp:34:69: note: ‘__gnu_cxx::__alloc_traits<std::allocator<AINT::node>, AINT::node>::value_type’ {aka ‘AINT::node’} is not derived from ‘const std::reverse_iterator<_Iterator>’
34 | aint[nod] = aint[nod * 2] + aint[nod * 2 + 1];
| ^
In file included from /usr/include/c++/11/bits/stl_algobase.h:67,
from /usr/include/c++/11/bits/char_traits.h:39,
from /usr/include/c++/11/ios:40,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/bits/stl_iterator.h:1700:5: note: candidate: ‘template<class _Iterator> std::move_iterator<_IteratorL> std::operator+(typename std::move_iterator<_IteratorL>::difference_type, const std::move_iterator<_IteratorL>&)’
1700 | operator+(typename move_iterator<_Iterator>::difference_type __n,
| ^~~~~~~~
/usr/include/c++/11/bits/stl_iterator.h:1700:5: note: template argument deduction/substitution failed:
main.cpp:34:69: note: ‘__gnu_cxx::__alloc_traits<std::allocator<AINT::node>, AINT::node>::value_type’ {aka ‘AINT::node’} is not derived from ‘const std::move_iterator<_IteratorL>’
34 | aint[nod] = aint[nod * 2] + aint[nod * 2 + 1];
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/bits/basic_string.h:6095:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)’
6095 | operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/11/bits/basic_string.h:6095:5: note: template argument deduction/substitution failed:
main.cpp:34:69: note: ‘__gnu_cxx::__alloc_traits<std::allocator<AINT::node>, AINT::node>::value_type’ {aka ‘AINT::node’} is not derived from ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’
34 | aint[nod] = aint[nod * 2] + aint[nod * 2 + 1];
| ^
In file included from /usr/include/c++/11/string:56,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/bits/basic_string.tcc:1169:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(const _CharT*, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)’
1169 | operator+(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/11/bits/basic_string.tcc:1169:5: note: template argument deduction/substitution failed:
main.cpp:34:69: note: mismatched types ‘const _CharT*’ and ‘AINT::node’
34 | aint[nod] = aint[nod * 2] + aint[nod * 2 + 1];
| ^
In file included from /usr/include/c++/11/string:56,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/bits/basic_string.tcc:1189:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(_CharT, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)’
1189 | operator+(_CharT __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs)
| ^~~~~~~~
/usr/include/c++/11/bits/basic_string.tcc:1189:5: note: template argument deduction/substitution failed:
main.cpp:34:69: note: ‘__gnu_cxx::__alloc_traits<std::allocator<AINT::node>, AINT::node>::value_type’ {aka ‘AINT::node’} is not derived from ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’
34 | aint[nod] = aint[nod * 2] + aint[nod * 2 + 1];
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/bits/basic_string.h:6132:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*)’
6132 | operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/11/bits/basic_string.h:6132:5: note: template argument deduction/substitution failed:
main.cpp:34:69: note: ‘__gnu_cxx::__alloc_traits<std::allocator<AINT::node>, AINT::node>::value_type’ {aka ‘AINT::node’} is not derived from ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’
34 | aint[nod] = aint[nod * 2] + aint[nod * 2 + 1];
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/bits/basic_string.h:6148:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, _CharT)’
6148 | operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs)
| ^~~~~~~~
/usr/include/c++/11/bits/basic_string.h:6148:5: note: template argument deduction/substitution failed:
main.cpp:34:69: note: ‘__gnu_cxx::__alloc_traits<std::allocator<AINT::node>, AINT::node>::value_type’ {aka ‘AINT::node’} is not derived from ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’
34 | aint[nod] = aint[nod * 2] + aint[nod * 2 + 1];
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/bits/basic_string.h:6160:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)’
6160 | operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
| ^~~~~~~~
/usr/include/c++/11/bits/basic_string.h:6160:5: note: template argument deduction/substitution failed:
main.cpp:34:69: note: ‘__gnu_cxx::__alloc_traits<std::allocator<AINT::node>, AINT::node>::value_type’ {aka ‘AINT::node’} is not derived from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’
34 | aint[nod] = aint[nod * 2] + aint[nod * 2 + 1];
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/bits/basic_string.h:6166:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&)’
6166 | operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/11/bits/basic_string.h:6166:5: note: template argument deduction/substitution failed:
main.cpp:34:69: note: ‘__gnu_cxx::__alloc_traits<std::allocator<AINT::node>, AINT::node>::value_type’ {aka ‘AINT::node’} is not derived from ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’
34 | aint[nod] = aint[nod * 2] + aint[nod * 2 + 1];
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/bits/basic_string.h:6172:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&)’
6172 | operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
| ^~~~~~~~
/usr/include/c++/11/bits/basic_string.h:6172:5: note: template argument deduction/substitution failed:
main.cpp:34:69: note: ‘__gnu_cxx::__alloc_traits<std::allocator<AINT::node>, AINT::node>::value_type’ {aka ‘AINT::node’} is not derived from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’
34 | aint[nod] = aint[nod * 2] + aint[nod * 2 + 1];
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/bits/basic_string.h:6194:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(const _CharT*, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&)’
6194 | operator+(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/11/bits/basic_string.h:6194:5: note: template argument deduction/substitution failed:
main.cpp:34:69: note: mismatched types ‘const _CharT*’ and ‘AINT::node’
34 | aint[nod] = aint[nod * 2] + aint[nod * 2 + 1];
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/bits/basic_string.h:6200:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(_CharT, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&)’
6200 | operator+(_CharT __lhs,
| ^~~~~~~~
/usr/include/c++/11/bits/basic_string.h:6200:5: note: template argument deduction/substitution failed:
main.cpp:34:69: note: ‘__gnu_cxx::__alloc_traits<std::allocator<AINT::node>, AINT::node>::value_type’ {aka ‘AINT::node’} is not derived from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’
34 | aint[nod] = aint[nod * 2] + aint[nod * 2 + 1];
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/bits/basic_string.h:6206:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, const _CharT*)’
6206 | operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
| ^~~~~~~~
/usr/include/c++/11/bits/basic_string.h:6206:5: note: template argument deduction/substitution failed:
main.cpp:34:69: note: ‘__gnu_cxx::__alloc_traits<std::allocator<AINT::node>, AINT::node>::value_type’ {aka ‘AINT::node’} is not derived from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’
34 | aint[nod] = aint[nod * 2] + aint[nod * 2 + 1];
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/bits/basic_string.h:6212:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, _CharT)’
6212 | operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
| ^~~~~~~~
/usr/include/c++/11/bits/basic_string.h:6212:5: note: template argument deduction/substitution failed:
main.cpp:34:69: note: ‘__gnu_cxx::__alloc_traits<std::allocator<AINT::node>, AINT::node>::value_type’ {aka ‘AINT::node’} is not derived from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’
34 | aint[nod] = aint[nod * 2] + aint[nod * 2 + 1];
| ^
In file included from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/complex:332:5: note: candidate: ‘template<class _Tp> std::complex<_Tp> std::operator+(const std::complex<_Tp>&, const std::complex<_Tp>&)’
332 | operator+(const complex<_Tp>& __x, const complex<_Tp>& __y)
| ^~~~~~~~
/usr/include/c++/11/complex:332:5: note: template argument deduction/substitution failed:
main.cpp:34:69: note: ‘__gnu_cxx::__alloc_traits<std::allocator<AINT::node>, AINT::node>::value_type’ {aka ‘AINT::node’} is not derived from ‘const std::complex<_Tp>’
34 | aint[nod] = aint[nod * 2] + aint[nod * 2 + 1];
| ^
In file included from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/complex:341:5: note: candidate: ‘template<class _Tp> std::complex<_Tp> std::operator+(const std::complex<_Tp>&, const _Tp&)’
341 | operator+(const complex<_Tp>& __x, const _Tp& __y)
| ^~~~~~~~
/usr/include/c++/11/complex:341:5: note: template argument deduction/substitution failed:
main.cpp:34:69: note: ‘__gnu_cxx::__alloc_traits<std::allocator<AINT::node>, AINT::node>::value_type’ {aka ‘AINT::node’} is not derived from ‘const std::complex<_Tp>’
34 | aint[nod] = aint[nod * 2] + aint[nod * 2 + 1];
| ^
In file included from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/complex:350:5: note: candidate: ‘template<class _Tp> std::complex<_Tp> std::operator+(const _Tp&, const std::complex<_Tp>&)’
350 | operator+(const _Tp& __x, const complex<_Tp>& __y)
| ^~~~~~~~
/usr/include/c++/11/complex:350:5: note: template argument deduction/substitution failed:
main.cpp:34:69: note: ‘__gnu_cxx::__alloc_traits<std::allocator<AINT::node>, AINT::node>::value_type’ {aka ‘AINT::node’} is not derived from ‘const std::complex<_Tp>’
34 | aint[nod] = aint[nod * 2] + aint[nod * 2 + 1];
| ^
In file included from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/complex:451:5: note: candidate: ‘template<class _Tp> std::complex<_Tp> std::operator+(const std::complex<_Tp>&)’
451 | operator+(const complex<_Tp>& __x)
| ^~~~~~~~
/usr/include/c++/11/complex:451:5: note: template argument deduction/substitution failed:
main.cpp:34:69: note: ‘__gnu_cxx::__alloc_traits<std::allocator<AINT::node>, AINT::node>::value_type’ {aka ‘AINT::node’} is not derived from ‘const std::complex<_Tp>’
34 | aint[nod] = aint[nod * 2] + aint[nod * 2 + 1];
| ^
In file included from /usr/include/c++/11/valarray:603,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95,
from main.cpp:1:
/usr/include/c++/11/bits/valarray_after.h:405:5: note: candidate: ‘template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__plus, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__plus, typename _Dom1::value_type>::result_type> std::operator+(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const std::_Expr<_Dom2, typename _Dom2::value_type>&)’
405 | _DEFINE_EXPR_BINARY_OPERATOR(+, struct std::__plus)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/valarray_after.h:405:5: note: template argument deduction/substitution failed:
main.cpp:34:69: note: ‘__gnu_cxx::__alloc_traits<std::allocator<AINT::node>, AINT::node>::value_type’ {aka ‘AINT::node’} is not derived from ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’
34 | aint[nod] = aint[nod * 2] + aint[nod * 2 + 1];
| ^
In file included from /usr/include/c++/11/valarray:603,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95,
from main.cpp:1:
/usr/include/c++/11/bits/valarray_after.h:405:5: note: candidate: ‘template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__plus, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename std::__fun<std::__plus, typename _Dom1::value_type>::result_type> std::operator+(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)’
405 | _DEFINE_EXPR_BINARY_OPERATOR(+, struct std::__plus)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/valarray_after.h:405:5: note: template argument deduction/substitution failed:
main.cpp:34:69: note: ‘__gnu_cxx::__alloc_traits<std::allocator<AINT::node>, AINT::node>::value_type’ {aka ‘AINT::node’} is not derived from ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’
34 | aint[nod] = aint[nod * 2] + aint[nod * 2 + 1];
| ^
In file included from /usr/include/c++/11/valarray:603,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95,
from main.cpp:1:
/usr/include/c++/11/bits/valarray_after.h:405:5: note: candidate: ‘template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__plus, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__plus, typename _Dom1::value_type>::result_type> std::operator+(const typename _Dom::value_type&, const std::_Expr<_Dom1, typename _Dom1::value_type>&)’
405 | _DEFINE_EXPR_BINARY_OPERATOR(+, struct std::__plus)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/valarray_after.h:405:5: note: template argument deduction/substitution failed:
main.cpp:34:69: note: ‘__gnu_cxx::__alloc_traits<std::allocator<AINT::node>, AINT::node>::value_type’ {aka ‘AINT::node’} is not derived from ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’
34 | aint[nod] = aint[nod * 2] + aint[nod * 2 + 1];
| ^
In file included from /usr/include/c++/11/valarray:603,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95,
from main.cpp:1:
/usr/include/c++/11/bits/valarray_after.h:405:5: note: candidate: ‘template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__plus, std::_Expr, std::_ValArray, _Dom, typename _Dom::value_type>, typename std::__fun<std::__plus, typename _Dom1::value_type>::result_type> std::operator+(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const std::valarray<typename _Dom::value_type>&)’
405 | _DEFINE_EXPR_BINARY_OPERATOR(+, struct std::__plus)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/valarray_after.h:405:5: note: template argument deduction/substitution failed:
main.cpp:34:69: note: ‘__gnu_cxx::__alloc_traits<std::allocator<AINT::node>, AINT::node>::value_type’ {aka ‘AINT::node’} is not derived from ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’
34 | aint[nod] = aint[nod * 2] + aint[nod * 2 + 1];
| ^
In file included from /usr/include/c++/11/valarray:603,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95,
from main.cpp:1:
/usr/include/c++/11/bits/valarray_after.h:405:5: note: candidate: ‘template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__plus, std::_ValArray, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__plus, typename _Dom1::value_type>::result_type> std::operator+(const std::valarray<typename _Dom::value_type>&, const std::_Expr<_Dom1, typename _Dom1::value_type>&)’
405 | _DEFINE_EXPR_BINARY_OPERATOR(+, struct std::__plus)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/valarray_after.h:405:5: note: template argument deduction/substitution failed:
main.cpp:34:69: note: ‘__gnu_cxx::__alloc_traits<std::allocator<AINT::node>, AINT::node>::value_type’ {aka ‘AINT::node’} is not derived from ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’
34 | aint[nod] = aint[nod * 2] + aint[nod * 2 + 1];
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95,
from main.cpp:1:
/usr/include/c++/11/valarray:1186:1: note: candidate: ‘template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__plus, std::_ValArray, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__plus, _Tp>::result_type> std::operator+(const std::valarray<_Tp>&, const std::valarray<_Tp>&)’
1186 | _DEFINE_BINARY_OPERATOR(+, __plus)
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/valarray:1186:1: note: template argument deduction/substitution failed:
main.cpp:34:69: note: ‘__gnu_cxx::__alloc_traits<std::allocator<AINT::node>, AINT::node>::value_type’ {aka ‘AINT::node’} is not derived from ‘const std::valarray<_Tp>’
34 | aint[nod] = aint[nod * 2] + aint[nod * 2 + 1];
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95,
from main.cpp:1:
/usr/include/c++/11/valarray:1186:1: note: candidate: ‘template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__plus, std::_ValArray, std::_Constant, _Tp, _Tp>, typename std::__fun<std::__plus, _Tp>::result_type> std::operator+(const std::valarray<_Tp>&, const typename std::valarray<_Tp>::value_type&)’
1186 | _DEFINE_BINARY_OPERATOR(+, __plus)
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/valarray:1186:1: note: template argument deduction/substitution failed:
main.cpp:34:69: note: ‘__gnu_cxx::__alloc_traits<std::allocator<AINT::node>, AINT::node>::value_type’ {aka ‘AINT::node’} is not derived from ‘const std::valarray<_Tp>’
34 | aint[nod] = aint[nod * 2] + aint[nod * 2 + 1];
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95,
from main.cpp:1:
/usr/include/c++/11/valarray:1186:1: note: candidate: ‘template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__plus, std::_Constant, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__plus, _Tp>::result_type> std::operator+(const typename std::valarray<_Tp>::value_type&, const std::valarray<_Tp>&)’
1186 | _DEFINE_BINARY_OPERATOR(+, __plus)
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/valarray:1186:1: note: template argument deduction/substitution failed:
main.cpp:34:69: note: ‘__gnu_cxx::__alloc_traits<std::allocator<AINT::node>, AINT::node>::value_type’ {aka ‘AINT::node’} is not derived from ‘const std::valarray<_Tp>’
34 | aint[nod] = aint[nod * 2] + aint[nod * 2 + 1];
| ^
main.cpp: In member function ‘AINT::node AINT::query(int64_t, int64_t, int64_t, int64_t, int64_t)’:
main.cpp:44:72: error: no match for ‘operator+’ (operand types are ‘AINT::node’ and ‘AINT::node’)
44 | return query(nod * 2, st, mid, l, min(r, mid)) + query(nod * 2 + 1, mid + 1, dr, max(mid + 1, l), r);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| AINT::node AINT::node
In file included from /usr/include/c++/11/bits/stl_algobase.h:67,
from /usr/include/c++/11/bits/char_traits.h:39,
from /usr/include/c++/11/ios:40,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/bits/stl_iterator.h:585:5: note: candidate: ‘template<class _Iterator> std::reverse_iterator<_Iterator> std::operator+(typename std::reverse_iterator<_Iterator>::difference_type, const std::reverse_iterator<_Iterator>&)’
585 | operator+(typename reverse_iterator<_Iterator>::difference_type __n,
| ^~~~~~~~
/usr/include/c++/11/bits/stl_iterator.h:585:5: note: template argument deduction/substitution failed:
main.cpp:44:124: note: ‘AINT::node’ is not derived from ‘const std::reverse_iterator<_Iterator>’
44 | return query(nod * 2, st, mid, l, min(r, mid)) + query(nod * 2 + 1, mid + 1, dr, max(mid + 1, l), r);
| ^
In file included from /usr/include/c++/11/bits/stl_algobase.h:67,
from /usr/include/c++/11/bits/char_traits.h:39,
from /usr/include/c++/11/ios:40,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/bits/stl_iterator.h:1700:5: note: candidate: ‘template<class _Iterator> std::move_iterator<_IteratorL> std::operator+(typename std::move_iterator<_IteratorL>::difference_type, const std::move_iterator<_IteratorL>&)’
1700 | operator+(typename move_iterator<_Iterator>::difference_type __n,
| ^~~~~~~~
/usr/include/c++/11/bits/stl_iterator.h:1700:5: note: template argument deduction/substitution failed:
main.cpp:44:124: note: ‘AINT::node’ is not derived from ‘const std::move_iterator<_IteratorL>’
44 | return query(nod * 2, st, mid, l, min(r, mid)) + query(nod * 2 + 1, mid + 1, dr, max(mid + 1, l), r);
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/bits/basic_string.h:6095:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)’
6095 | operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/11/bits/basic_string.h:6095:5: note: template argument deduction/substitution failed:
main.cpp:44:124: note: ‘AINT::node’ is not derived from ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’
44 | return query(nod * 2, st, mid, l, min(r, mid)) + query(nod * 2 + 1, mid + 1, dr, max(mid + 1, l), r);
| ^
In file included from /usr/include/c++/11/string:56,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/bits/basic_string.tcc:1169:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(const _CharT*, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)’
1169 | operator+(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/11/bits/basic_string.tcc:1169:5: note: template argument deduction/substitution failed:
main.cpp:44:124: note: mismatched types ‘const _CharT*’ and ‘AINT::node’
44 | return query(nod * 2, st, mid, l, min(r, mid)) + query(nod * 2 + 1, mid + 1, dr, max(mid + 1, l), r);
| ^
In file included from /usr/include/c++/11/string:56,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/bits/basic_string.tcc:1189:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(_CharT, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)’
1189 | operator+(_CharT __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs)
| ^~~~~~~~
/usr/include/c++/11/bits/basic_string.tcc:1189:5: note: template argument deduction/substitution failed:
main.cpp:44:124: note: ‘AINT::node’ is not derived from ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’
44 | return query(nod * 2, st, mid, l, min(r, mid)) + query(nod * 2 + 1, mid + 1, dr, max(mid + 1, l), r);
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/bits/basic_string.h:6132:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*)’
6132 | operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/11/bits/basic_string.h:6132:5: note: template argument deduction/substitution failed:
main.cpp:44:124: note: ‘AINT::node’ is not derived from ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’
44 | return query(nod * 2, st, mid, l, min(r, mid)) + query(nod * 2 + 1, mid + 1, dr, max(mid + 1, l), r);
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/bits/basic_string.h:6148:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, _CharT)’
6148 | operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs)
| ^~~~~~~~
/usr/include/c++/11/bits/basic_string.h:6148:5: note: template argument deduction/substitution failed:
main.cpp:44:124: note: ‘AINT::node’ is not derived from ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’
44 | return query(nod * 2, st, mid, l, min(r, mid)) + query(nod * 2 + 1, mid + 1, dr, max(mid + 1, l), r);
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/bits/basic_string.h:6160:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)’
6160 | operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
| ^~~~~~~~
/usr/include/c++/11/bits/basic_string.h:6160:5: note: template argument deduction/substitution failed:
main.cpp:44:124: note: ‘AINT::node’ is not derived from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’
44 | return query(nod * 2, st, mid, l, min(r, mid)) + query(nod * 2 + 1, mid + 1, dr, max(mid + 1, l), r);
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/bits/basic_string.h:6166:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&)’
6166 | operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/11/bits/basic_string.h:6166:5: note: template argument deduction/substitution failed:
main.cpp:44:124: note: ‘AINT::node’ is not derived from ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’
44 | return query(nod * 2, st, mid, l, min(r, mid)) + query(nod * 2 + 1, mid + 1, dr, max(mid + 1, l), r);
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/bits/basic_string.h:6172:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&)’
6172 | operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
| ^~~~~~~~
/usr/include/c++/11/bits/basic_string.h:6172:5: note: template argument deduction/substitution failed:
main.cpp:44:124: note: ‘AINT::node’ is not derived from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’
44 | return query(nod * 2, st, mid, l, min(r, mid)) + query(nod * 2 + 1, mid + 1, dr, max(mid + 1, l), r);
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/bits/basic_string.h:6194:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(const _CharT*, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&)’
6194 | operator+(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/11/bits/basic_string.h:6194:5: note: template argument deduction/substitution failed:
main.cpp:44:124: note: mismatched types ‘const _CharT*’ and ‘AINT::node’
44 | return query(nod * 2, st, mid, l, min(r, mid)) + query(nod * 2 + 1, mid + 1, dr, max(mid + 1, l), r);
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/bits/basic_string.h:6200:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(_CharT, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&)’
6200 | operator+(_CharT __lhs,
| ^~~~~~~~
/usr/include/c++/11/bits/basic_string.h:6200:5: note: template argument deduction/substitution failed:
main.cpp:44:124: note: ‘AINT::node’ is not derived from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’
44 | return query(nod * 2, st, mid, l, min(r, mid)) + query(nod * 2 + 1, mid + 1, dr, max(mid + 1, l), r);
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/bits/basic_string.h:6206:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, const _CharT*)’
6206 | operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
| ^~~~~~~~
/usr/include/c++/11/bits/basic_string.h:6206:5: note: template argument deduction/substitution failed:
main.cpp:44:124: note: ‘AINT::node’ is not derived from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’
44 | return query(nod * 2, st, mid, l, min(r, mid)) + query(nod * 2 + 1, mid + 1, dr, max(mid + 1, l), r);
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/bits/basic_string.h:6212:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, _CharT)’
6212 | operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
| ^~~~~~~~
/usr/include/c++/11/bits/basic_string.h:6212:5: note: template argument deduction/substitution failed:
main.cpp:44:124: note: ‘AINT::node’ is not derived from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’
44 | return query(nod * 2, st, mid, l, min(r, mid)) + query(nod * 2 + 1, mid + 1, dr, max(mid + 1, l), r);
| ^
In file included from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/complex:332:5: note: candidate: ‘template<class _Tp> std::complex<_Tp> std::operator+(const std::complex<_Tp>&, const std::complex<_Tp>&)’
332 | operator+(const complex<_Tp>& __x, const complex<_Tp>& __y)
| ^~~~~~~~
/usr/include/c++/11/complex:332:5: note: template argument deduction/substitution failed:
main.cpp:44:124: note: ‘AINT::node’ is not derived from ‘const std::complex<_Tp>’
44 | return query(nod * 2, st, mid, l, min(r, mid)) + query(nod * 2 + 1, mid + 1, dr, max(mid + 1, l), r);
| ^
In file included from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/complex:341:5: note: candidate: ‘template<class _Tp> std::complex<_Tp> std::operator+(const std::complex<_Tp>&, const _Tp&)’
341 | operator+(const complex<_Tp>& __x, const _Tp& __y)
| ^~~~~~~~
/usr/include/c++/11/complex:341:5: note: template argument deduction/substitution failed:
main.cpp:44:124: note: ‘AINT::node’ is not derived from ‘const std::complex<_Tp>’
44 | return query(nod * 2, st, mid, l, min(r, mid)) + query(nod * 2 + 1, mid + 1, dr, max(mid + 1, l), r);
| ^
In file included from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/complex:350:5: note: candidate: ‘template<class _Tp> std::complex<_Tp> std::operator+(const _Tp&, const std::complex<_Tp>&)’
350 | operator+(const _Tp& __x, const complex<_Tp>& __y)
| ^~~~~~~~
/usr/include/c++/11/complex:350:5: note: template argument deduction/substitution failed:
main.cpp:44:124: note: ‘AINT::node’ is not derived from ‘const std::complex<_Tp>’
44 | return query(nod * 2, st, mid, l, min(r, mid)) + query(nod * 2 + 1, mid + 1, dr, max(mid + 1, l), r);
| ^
In file included from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/11/complex:451:5: note: candidate: ‘template<class _Tp> std::complex<_Tp> std::operator+(const std::complex<_Tp>&)’
451 | operator+(const complex<_Tp>& __x)
| ^~~~~~~~
/usr/include/c++/11/complex:451:5: note: template argument deduction/substitution failed:
main.cpp:44:124: note: ‘AINT::node’ is not derived from ‘const std::complex<_Tp>’
44 | return query(nod * 2, st, mid, l, min(r, mid)) + query(nod * 2 + 1, mid + 1, dr, max(mid + 1, l), r);
| ^
In file included from /usr/include/c++/11/valarray:603,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95,
from main.cpp:1:
/usr/include/c++/11/bits/valarray_after.h:405:5: note: candidate: ‘template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__plus, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__plus, typename _Dom1::value_type>::result_type> std::operator+(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const std::_Expr<_Dom2, typename _Dom2::value_type>&)’
405 | _DEFINE_EXPR_BINARY_OPERATOR(+, struct std::__plus)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/valarray_after.h:405:5: note: template argument deduction/substitution failed:
main.cpp:44:124: note: ‘AINT::node’ is not derived from ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’
44 | return query(nod * 2, st, mid, l, min(r, mid)) + query(nod * 2 + 1, mid + 1, dr, max(mid + 1, l), r);
| ^
In file included from /usr/include/c++/11/valarray:603,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95,
from main.cpp:1:
/usr/include/c++/11/bits/valarray_after.h:405:5: note: candidate: ‘template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__plus, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename std::__fun<std::__plus, typename _Dom1::value_type>::result_type> std::operator+(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)’
405 | _DEFINE_EXPR_BINARY_OPERATOR(+, struct std::__plus)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/valarray_after.h:405:5: note: template argument deduction/substitution failed:
main.cpp:44:124: note: ‘AINT::node’ is not derived from ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’
44 | return query(nod * 2, st, mid, l, min(r, mid)) + query(nod * 2 + 1, mid + 1, dr, max(mid + 1, l), r);
| ^
In file included from /usr/include/c++/11/valarray:603,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95,
from main.cpp:1:
/usr/include/c++/11/bits/valarray_after.h:405:5: note: candidate: ‘template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__plus, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__plus, typename _Dom1::value_type>::result_type> std::operator+(const typename _Dom::value_type&, const std::_Expr<_Dom1, typename _Dom1::value_type>&)’
405 | _DEFINE_EXPR_BINARY_OPERATOR(+, struct std::__plus)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/valarray_after.h:405:5: note: template argument deduction/substitution failed:
main.cpp:44:124: note: ‘AINT::node’ is not derived from ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’
44 | return query(nod * 2, st, mid, l, min(r, mid)) + query(nod * 2 + 1, mid + 1, dr, max(mid + 1, l), r);
| ^
In file included from /usr/include/c++/11/valarray:603,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95,
from main.cpp:1:
/usr/include/c++/11/bits/valarray_after.h:405:5: note: candidate: ‘template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__plus, std::_Expr, std::_ValArray, _Dom, typename _Dom::value_type>, typename std::__fun<std::__plus, typename _Dom1::value_type>::result_type> std::operator+(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const std::valarray<typename _Dom::value_type>&)’
405 | _DEFINE_EXPR_BINARY_OPERATOR(+, struct std::__plus)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/valarray_after.h:405:5: note: template argument deduction/substitution failed:
main.cpp:44:124: note: ‘AINT::node’ is not derived from ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’
44 | return query(nod * 2, st, mid, l, min(r, mid)) + query(nod * 2 + 1, mid + 1, dr, max(mid + 1, l), r);
| ^
In file included from /usr/include/c++/11/valarray:603,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95,
from main.cpp:1:
/usr/include/c++/11/bits/valarray_after.h:405:5: note: candidate: ‘template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__plus, std::_ValArray, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__plus, typename _Dom1::value_type>::result_type> std::operator+(const std::valarray<typename _Dom::value_type>&, const std::_Expr<_Dom1, typename _Dom1::value_type>&)’
405 | _DEFINE_EXPR_BINARY_OPERATOR(+, struct std::__plus)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/valarray_after.h:405:5: note: template argument deduction/substitution failed:
main.cpp:44:124: note: ‘AINT::node’ is not derived from ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’
44 | return query(nod * 2, st, mid, l, min(r, mid)) + query(nod * 2 + 1, mid + 1, dr, max(mid + 1, l), r);
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95,
from main.cpp:1:
/usr/include/c++/11/valarray:1186:1: note: candidate: ‘template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__plus, std::_ValArray, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__plus, _Tp>::result_type> std::operator+(const std::valarray<_Tp>&, const std::valarray<_Tp>&)’
1186 | _DEFINE_BINARY_OPERATOR(+, __plus)
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/valarray:1186:1: note: template argument deduction/substitution failed:
main.cpp:44:124: note: ‘AINT::node’ is not derived from ‘const std::valarray<_Tp>’
44 | return query(nod * 2, st, mid, l, min(r, mid)) + query(nod * 2 + 1, mid + 1, dr, max(mid + 1, l), r);
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95,
from main.cpp:1:
/usr/include/c++/11/valarray:1186:1: note: candidate: ‘template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__plus, std::_ValArray, std::_Constant, _Tp, _Tp>, typename std::__fun<std::__plus, _Tp>::result_type> std::operator+(const std::valarray<_Tp>&, const typename std::valarray<_Tp>::value_type&)’
1186 | _DEFINE_BINARY_OPERATOR(+, __plus)
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/valarray:1186:1: note: template argument deduction/substitution failed:
main.cpp:44:124: note: ‘AINT::node’ is not derived from ‘const std::valarray<_Tp>’
44 | return query(nod * 2, st, mid, l, min(r, mid)) + query(nod * 2 + 1, mid + 1, dr, max(mid + 1, l), r);
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95,
from main.cpp:1:
/usr/include/c++/11/valarray:1186:1: note: candidate: ‘template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__plus, std::_Constant, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__plus, _Tp>::result_type> std::operator+(const typename std::valarray<_Tp>::value_type&, const std::valarray<_Tp>&)’
1186 | _DEFINE_BINARY_OPERATOR(+, __plus)
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/valarray:1186:1: note: template argument deduction/substitution failed:
main.cpp:44:124: note: ‘AINT::node’ is not derived from ‘const std::valarray<_Tp>’
44 | return query(nod * 2, st, mid, l, min(r, mid)) + query(nod * 2 + 1, mid + 1, dr, max(mid + 1, l), r);
| ^