Mã số Tên bài Trạng thái Điểm Tổng thời gian Bộ nhớ Ngôn ngữ/Kích thước Người nộp Thời điểm nộp
#26938 #385. BNUMMULT - Nhân hai số lớn Compile Error 0 0 ms 0 K C++ 17 / 527 B Tạ Thu Hà 2021-01-29 14:43:23

Tổng hợp thông tin

/sandbox/1/a.cpp: In function 'bint nhan(bint, long long int)':
/sandbox/1/a.cpp:16:30: error: no match for 'operator+' (operand types are 'int' and 'bint' {aka 'std::__cxx11::basic_string<char>'})
         c = (nho % 10 + '0') + c;
             ~~~~~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/8/bits/stl_algobase.h:67,
                 from /usr/include/c++/8/bits/specfun.h:45,
                 from /usr/include/c++/8/cmath:1892,
                 from /usr/include/x86_64-linux-gnu/c++/8/x32/bits/stdc++.h:41,
                 from /sandbox/1/a.cpp:1:
/usr/include/c++/8/bits/stl_iterator.h:397:5: note: candidate: 'template<class _Iterator> constexpr std::reverse_iterator<_Iterator> std::operator+(typename std::reverse_iterator<_Iterator>::difference_type, const std::reverse_iterator<_Iterator>&)'
     operator+(typename reverse_iterator<_Iterator>::difference_type __n,
     ^~~~~~~~
/usr/include/c++/8/bits/stl_iterator.h:397:5: note:   template argument deduction/substitution failed:
/sandbox/1/a.cpp:16:32: note:   'bint' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
         c = (nho % 10 + '0') + c;
                                ^
In file included from /usr/include/c++/8/bits/stl_algobase.h:67,
                 from /usr/include/c++/8/bits/specfun.h:45,
                 from /usr/include/c++/8/cmath:1892,
                 from /usr/include/x86_64-linux-gnu/c++/8/x32/bits/stdc++.h:41,
                 from /sandbox/1/a.cpp:1:
/usr/include/c++/8/bits/stl_iterator.h:1192:5: note: candidate: 'template<class _Iterator> constexpr std::move_iterator<_IteratorL> std::operator+(typename std::move_iterator<_IteratorL>::difference_type, const std::move_iterator<_IteratorL>&)'
     operator+(typename move_iterator<_Iterator>::difference_type __n,
     ^~~~~~~~
/usr/include/c++/8/bits/stl_iterator.h:1192:5: note:   template argument deduction/substitution failed:
/sandbox/1/a.cpp:16:32: note:   'bint' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
         c = (nho % 10 + '0') + c;
                                ^
In file included from /usr/include/c++/8/string:52,
                 from /usr/include/c++/8/bits/locale_classes.h:40,
                 from /usr/include/c++/8/bits/ios_base.h:41,
                 from /usr/include/c++/8/ios:42,
                 from /usr/include/c++/8/istream:38,
                 from /usr/include/c++/8/sstream:38,
                 from /usr/include/c++/8/complex:45,
                 from /usr/include/c++/8/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/8/x32/bits/stdc++.h:52,
                 from /sandbox/1/a.cpp:1:
/usr/include/c++/8/bits/basic_string.h:5918:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&, const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
     operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
     ^~~~~~~~
/usr/include/c++/8/bits/basic_string.h:5918:5: note:   template argument deduction/substitution failed:
/sandbox/1/a.cpp:16:32: note:   mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'int'
         c = (nho % 10 + '0') + c;
                                ^
In file included from /usr/include/c++/8/string:53,
                 from /usr/include/c++/8/bits/locale_classes.h:40,
                 from /usr/include/c++/8/bits/ios_base.h:41,
                 from /usr/include/c++/8/ios:42,
                 from /usr/include/c++/8/istream:38,
                 from /usr/include/c++/8/sstream:38,
                 from /usr/include/c++/8/complex:45,
                 from /usr/include/c++/8/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/8/x32/bits/stdc++.h:52,
                 from /sandbox/1/a.cpp:1:
/usr/include/c++/8/bits/basic_string.tcc:1157:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(const _CharT*, const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
     operator+(const _CharT* __lhs,
     ^~~~~~~~
/usr/include/c++/8/bits/basic_string.tcc:1157:5: note:   template argument deduction/substitution failed:
/sandbox/1/a.cpp:16:32: note:   mismatched types 'const _CharT*' and 'int'
         c = (nho % 10 + '0') + c;
                                ^
In file included from /usr/include/c++/8/string:53,
                 from /usr/include/c++/8/bits/locale_classes.h:40,
                 from /usr/include/c++/8/bits/ios_base.h:41,
                 from /usr/include/c++/8/ios:42,
                 from /usr/include/c++/8/istream:38,
                 from /usr/include/c++/8/sstream:38,
                 from /usr/include/c++/8/complex:45,
                 from /usr/include/c++/8/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/8/x32/bits/stdc++.h:52,
                 from /sandbox/1/a.cpp:1:
/usr/include/c++/8/bits/basic_string.tcc:1173:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(_CharT, const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
     operator+(_CharT __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs)
     ^~~~~~~~
/usr/include/c++/8/bits/basic_string.tcc:1173:5: note:   template argument deduction/substitution failed:
/sandbox/1/a.cpp:16:32: note:   deduced conflicting types for parameter '_CharT' ('int' and 'char')
         c = (nho % 10 + '0') + c;
                                ^
In file included from /usr/include/c++/8/string:52,
                 from /usr/include/c++/8/bits/locale_classes.h:40,
                 from /usr/include/c++/8/bits/ios_base.h:41,
                 from /usr/include/c++/8/ios:42,
                 from /usr/include/c++/8/istream:38,
                 from /usr/include/c++/8/sstream:38,
                 from /usr/include/c++/8/complex:45,
                 from /usr/include/c++/8/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/8/x32/bits/stdc++.h:52,
                 from /sandbox/1/a.cpp:1:
/usr/include/c++/8/bits/basic_string.h:5955:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
     operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
     ^~~~~~~~
/usr/include/c++/8/bits/basic_string.h:5955:5: note:   template argument deduction/substitution failed:
/sandbox/1/a.cpp:16:32: note:   mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'int'
         c = (nho % 10 + '0') + c;
                                ^
In file included from /usr/include/c++/8/string:52,
                 from /usr/include/c++/8/bits/locale_classes.h:40,
                 from /usr/include/c++/8/bits/ios_base.h:41,
                 from /usr/include/c++/8/ios:42,
                 from /usr/include/c++/8/istream:38,
                 from /usr/include/c++/8/sstream:38,
                 from /usr/include/c++/8/complex:45,
                 from /usr/include/c++/8/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/8/x32/bits/stdc++.h:52,
                 from /sandbox/1/a.cpp:1:
/usr/include/c++/8/bits/basic_string.h:5971:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&, _CharT)'
     operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs)
     ^~~~~~~~
/usr/include/c++/8/bits/basic_string.h:5971:5: note:   template argument deduction/substitution failed:
/sandbox/1/a.cpp:16:32: note:   mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'int'
         c = (nho % 10 + '0') + c;
                                ^
In file included from /usr/include/c++/8/string:52,
                 from /usr/include/c++/8/bits/locale_classes.h:40,
                 from /usr/include/c++/8/bits/ios_base.h:41,
                 from /usr/include/c++/8/ios:42,
                 from /usr/include/c++/8/istream:38,
                 from /usr/include/c++/8/sstream:38,
                 from /usr/include/c++/8/complex:45,
                 from /usr/include/c++/8/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/8/x32/bits/stdc++.h:52,
                 from /sandbox/1/a.cpp:1:
/usr/include/c++/8/bits/basic_string.h:5983:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&&, const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
     operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
     ^~~~~~~~
/usr/include/c++/8/bits/basic_string.h:5983:5: note:   template argument deduction/substitution failed:
/sandbox/1/a.cpp:16:32: note:   mismatched types 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'int'
         c = (nho % 10 + '0') + c;
                                ^
In file included from /usr/include/c++/8/string:52,
                 from /usr/include/c++/8/bits/locale_classes.h:40,
                 from /usr/include/c++/8/bits/ios_base.h:41,
                 from /usr/include/c++/8/ios:42,
                 from /usr/include/c++/8/istream:38,
                 from /usr/include/c++/8/sstream:38,
                 from /usr/include/c++/8/complex:45,
                 from /usr/include/c++/8/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/8/x32/bits/stdc++.h:52,
                 from /sandbox/1/a.cpp:1:
/usr/include/c++/8/bits/basic_string.h:5989:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&, std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&&)'
     operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
     ^~~~~~~~
/usr/include/c++/8/bits/basic_string.h:5989:5: note:   template argument deduction/substitution failed:
/sandbox/1/a.cpp:16:32: note:   mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'int'
         c = (nho % 10 + '0') + c;
                                ^
In file included from /usr/include/c++/8/string:52,
                 from /usr/include/c++/8/bits/locale_classes.h:40,
                 from /usr/include/c++/8/bits/ios_base.h:41,
                 from /usr/include/c++/8/ios:42,
                 from /usr/include/c++/8/istream:38,
                 from /usr/include/c++/8/sstream:38,
                 from /usr/include/c++/8/complex:45,
                 from /usr/include/c++/8/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/8/x32/bits/stdc++.h:52,
                 from /sandbox/1/a.cpp:1:
/usr/include/c++/8/bits/basic_string.h:5995:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&&, std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&&)'
     operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
     ^~~~~~~~
/usr/include/c++/8/bits/basic_string.h:5995:5: note:   template argument deduction/substitution failed:
/sandbox/1/a.cpp:16:32: note:   mismatched types 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'int'
         c = (nho % 10 + '0') + c;
                                ^
In file included from /usr/include/c++/8/string:52,
                 from /usr/include/c++/8/bits/locale_classes.h:40,
                 from /usr/include/c++/8/bits/ios_base.h:41,
                 from /usr/include/c++/8/ios:42,
                 from /usr/include/c++/8/istream:38,
                 from /usr/include/c++/8/sstream:38,
                 from /usr/include/c++/8/complex:45,
                 from /usr/include/c++/8/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/8/x32/bits/stdc++.h:52,
                 from /sandbox/1/a.cpp:1:
/usr/include/c++/8/bits/basic_string.h:6007:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(const _CharT*, std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&&)'
     operator+(const _CharT* __lhs,
     ^~~~~~~~
/usr/include/c++/8/bits/basic_string.h:6007:5: note:   template argument deduction/substitution failed:
/sandbox/1/a.cpp:16:32: note:   mismatched types 'const _CharT*' and 'int'
         c = (nho % 10 + '0') + c;
                                ^
In file included from /usr/include/c++/8/string:52,
                 from /usr/include/c++/8/bits/locale_classes.h:40,
                 from /usr/include/c++/8/bits/ios_base.h:41,
                 from /usr/include/c++/8/ios:42,
                 from /usr/include/c++/8/istream:38,
                 from /usr/include/c++/8/sstream:38,
                 from /usr/include/c++/8/complex:45,
                 from /usr/include/c++/8/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/8/x32/bits/stdc++.h:52,
                 from /sandbox/1/a.cpp:1:
/usr/include/c++/8/bits/basic_string.h:6013:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(_CharT, std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&&)'
     operator+(_CharT __lhs,
     ^~~~~~~~
/usr/include/c++/8/bits/basic_string.h:6013:5: note:   template argument deduction/substitution failed:
/sandbox/1/a.cpp:16:32: note:   deduced conflicting types for parameter '_CharT' ('int' and 'char')
         c = (nho % 10 + '0') + c;
                                ^
In file included from /usr/include/c++/8/string:52,
                 from /usr/include/c++/8/bits/locale_classes.h:40,
                 from /usr/include/c++/8/bits/ios_base.h:41,
                 from /usr/include/c++/8/ios:42,
                 from /usr/include/c++/8/istream:38,
                 from /usr/include/c++/8/sstream:38,
                 from /usr/include/c++/8/complex:45,
                 from /usr/include/c++/8/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/8/x32/bits/stdc++.h:52,
                 from /sandbox/1/a.cpp:1:
/usr/include/c++/8/bits/basic_string.h:6019:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&&, const _CharT*)'
     operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
     ^~~~~~~~
/usr/include/c++/8/bits/basic_string.h:6019:5: note:   template argument deduction/substitution failed:
/sandbox/1/a.cpp:16:32: note:   mismatched types 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'int'
         c = (nho % 10 + '0') + c;
                                ^
In file included from /usr/include/c++/8/string:52,
                 from /usr/include/c++/8/bits/locale_classes.h:40,
                 from /usr/include/c++/8/bits/ios_base.h:41,
                 from /usr/include/c++/8/ios:42,
                 from /usr/include/c++/8/istream:38,
                 from /usr/include/c++/8/sstream:38,
                 from /usr/include/c++/8/complex:45,
                 from /usr/include/c++/8/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/8/x32/bits/stdc++.h:52,
                 from /sandbox/1/a.cpp:1:
/usr/include/c++/8/bits/basic_string.h:6025:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&&, _CharT)'
     operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
     ^~~~~~~~
/usr/include/c++/8/bits/basic_string.h:6025:5: note:   template argument deduction/substitution failed:
/sandbox/1/a.cpp:16:32: note:   mismatched types 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'int'
         c = (nho % 10 + '0') + c;
                                ^
In file included from /usr/include/c++/8/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/8/x32/bits/stdc++.h:52,
                 from /sandbox/1/a.cpp:1:
/usr/include/c++/8/complex:326:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::operator+(const std::complex<_Tp>&, const std::complex<_Tp>&)'
     operator+(const complex<_Tp>& __x, const complex<_Tp>& __y)
     ^~~~~~~~
/usr/include/c++/8/complex:326:5: note:   template argument deduction/substitution failed:
/sandbox/1/a.cpp:16:32: note:   mismatched types 'const std::complex<_Tp>' and 'int'
         c = (nho % 10 + '0') + c;
                                ^
In file included from /usr/include/c++/8/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/8/x32/bits/stdc++.h:52,
                 from /sandbox/1/a.cpp:1:
/usr/include/c++/8/complex:335:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::operator+(const std::complex<_Tp>&, const _Tp&)'
     operator+(const complex<_Tp>& __x, const _Tp& __y)
     ^~~~~~~~
/usr/include/c++/8/complex:335:5: note:   template argument deduction/substitution failed:
/sandbox/1/a.cpp:16:32: note:   mismatched types 'const std::complex<_Tp>' and 'int'
         c = (nho % 10 + '0') + c;
                                ^
In file included from /usr/include/c++/8/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/8/x32/bits/stdc++.h:52,
                 from /sandbox/1/a.cpp:1:
/usr/include/c++/8/complex:344:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::operator+(const _Tp&, const std::complex<_Tp>&)'
     operator+(const _Tp& __x, const complex<_Tp>& __y)
     ^~~~~~~~
/usr/include/c++/8/complex:344:5: note:   template argument deduction/substitution failed:
/sandbox/1/a.cpp:16:32: note:   'bint' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::complex<_Tp>'
         c = (nho % 10 + '0') + c;
                                ^
In file included from /usr/include/c++/8/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/8/x32/bits/stdc++.h:52,
                 from /sandbox/1/a.cpp:1:
/usr/include/c++/8/complex:445:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::operator+(const std::complex<_Tp>&)'
     operator+(const complex<_Tp>& __x)
     ^~~~~~~~
/usr/include/c++/8/complex:445:5: note:   template argument deduction/substitution failed:
/sandbox/1/a.cpp:16:32: note:   mismatched types 'const std::complex<_Tp>' and 'int'
         c = (nho % 10 + '0') + c;
                                ^
In file included from /usr/include/c++/8/deque:64,
                 from /usr/include/x86_64-linux-gnu/c++/8/x32/bits/stdc++.h:68,
                 from /sandbox/1/a.cpp:1:
/usr/include/c++/8/bits/stl_deque.h:375:5: note: candidate: 'template<class _Tp, class _Ref, class _Ptr> std::_Deque_iterator<_Tp, _Ref, _Ptr> std::operator+(std::ptrdiff_t, const std::_Deque_iterator<_Tp, _Ref, _Ptr>&)'
     operator+(ptrdiff_t __n, const _Deque_iterator<_Tp, _Ref, _Ptr>& __x)
     ^~~~~~~~
/usr/include/c++/8/bits/stl_deque.h:375:5: note:   template argument deduction/substitution failed:
/sandbox/1/a.cpp:16:32: note:   'bint' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Deque_iterator<_Tp, _Ref, _Ptr>'
         c = (nho % 10 + '0') + c;
                                ^
In file included from /usr/include/c++/8/vector:65,
                 from /usr/include/c++/8/functional:62,
                 from /usr/include/x86_64-linux-gnu/c++/8/x32/bits/stdc++.h:71,
                 from /sandbox/1/a.cpp:1:
/usr/include/c++/8/bits/stl_bvector.h:299:3: note: candidate: 'std::_Bit_iterator std::operator+(std::ptrdiff_t, const std::_Bit_iterator&)'
   operator+(ptrdiff_t __n, const _Bit_iterator& __x)
   ^~~~~~~~
/usr/include/c++/8/bits/stl_bvector.h:299:3: note:   no known conversion for argument 2 from 'bint' {aka 'std::__cxx11::basic_string<char>'} to 'const std::_Bit_iterator&'
/usr/include/c++/8/bits/stl_bvector.h:389:3: note: candidate: 'std::_Bit_const_iterator std::operator+(std::ptrdiff_t, const std::_Bit_const_iterator&)'
   operator+(ptrdiff_t __n, const _Bit_const_iterator& __x)
   ^~~~~~~~
/usr/include/c++/8/bits/stl_bvector.h:389:3: note:   no known conversion for argument 2 from 'bint' {aka 'std::__cxx11::basic_string<char>'} to 'const std::_Bit_const_iterator&'
In file included from /usr/include/c++/8/valarray:592,
                 from /usr/include/x86_64-linux-gnu/c++/8/x32/bits/stdc++.h:95,
                 from /sandbox/1/a.cpp:1:
/usr/include/c++/8/bits/valarray_after.h:402:5: note: candidate: 'template<class _Dom1, class _Dom2> std::_Expr<std::_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>&)'
     _DEFINE_EXPR_BINARY_OPERATOR(+, __plus)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/8/bits/valarray_after.h:402:5: note:   template argument deduction/substitution failed:
/sandbox/1/a.cpp:16:32: note:   mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'int'
         c = (nho % 10 + '0') + c;
                                ^
In file included from /usr/include/c++/8/valarray:592,
                 from /usr/include/x86_64-linux-gnu/c++/8/x32/bits/stdc++.h:95,
                 from /sandbox/1/a.cpp:1:
/usr/include/c++/8/bits/valarray_after.h:402:5: note: candidate: 'template<class _Dom> std::_Expr<std::_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&)'
     _DEFINE_EXPR_BINARY_OPERATOR(+, __plus)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/8/bits/valarray_after.h:402:5: note:   template argument deduction/substitution failed:
/sandbox/1/a.cpp:16:32: note:   mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'int'
         c = (nho % 10 + '0') + c;
                                ^
In file included from /usr/include/c++/8/valarray:592,
                 from /usr/include/x86_64-linux-gnu/c++/8/x32/bits/stdc++.h:95,
                 from /sandbox/1/a.cpp:1:
/usr/include/c++/8/bits/valarray_after.h:402:5: note: candidate: 'template<class _Dom> std::_Expr<std::_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>&)'
     _DEFINE_EXPR_BINARY_OPERATOR(+, __plus)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/8/bits/valarray_after.h:402:5: note:   template argument deduction/substitution failed:
/sandbox/1/a.cpp:16:32: note:   'bint' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
         c = (nho % 10 + '0') + c;
                                ^
In file included from /usr/include/c++/8/valarray:592,
                 from /usr/include/x86_64-linux-gnu/c++/8/x32/bits/stdc++.h:95,
                 from /sandbox/1/a.cpp:1:
/usr/include/c++/8/bits/valarray_after.h:402:5: note: candidate: 'template<class _Dom> std::_Expr<std::_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>&)'
     _DEFINE_EXPR_BINARY_OPERATOR(+, __plus)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/8/bits/valarray_after.h:402:5: note:   template argument deduction/substitution failed:
/sandbox/1/a.cpp:16:32: note:   mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'int'
         c = (nho % 10 + '0') + c;
                                ^
In file included from /usr/include/c++/8/valarray:592,
                 from /usr/include/x86_64-linux-gnu/c++/8/x32/bits/stdc++.h:95,
                 from /sandbox/1/a.cpp:1:
/usr/include/c++/8/bits/valarray_after.h:402:5: note: candidate: 'template<class _Dom> std::_Expr<std::_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>&)'
     _DEFINE_EXPR_BINARY_OPERATOR(+, __plus)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/8/bits/valarray_after.h:402:5: note:   template argument deduction/substitution failed:
/sandbox/1/a.cpp:16:32: note:   'bint' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
         c = (nho % 10 + '0') + c;
                                ^
In file included from /usr/include/x86_64-linux-gnu/c++/8/x32/bits/stdc++.h:95,
                 from /sandbox/1/a.cpp:1:
/usr/include/c++/8/valarray:1172:1: note: candidate: 'template<class _Tp> std::_Expr<std::_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>&)'
 _DEFINE_BINARY_OPERATOR(+, __plus)
 ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/8/valarray:1172:1: note:   template argument deduction/substitution failed:
/sandbox/1/a.cpp:16:32: note:   mismatched types 'const std::valarray<_Tp>' and 'int'
         c = (nho % 10 + '0') + c;
                                ^
In file included from /usr/include/x86_64-linux-gnu/c++/8/x32/bits/stdc++.h:95,
                 from /sandbox/1/a.cpp:1:
/usr/include/c++/8/valarray:1172:1: note: candidate: 'template<class _Tp> std::_Expr<std::_BinClos<std::__plus, std::_ValArray, std::_Constant, _Tp, _Tp>, typename std::__fun<std::__plus, _Tp>::result_type> std::operator+(const std::valarray<_Tp>&, const _Tp&)'
 _DEFINE_BINARY_OPERATOR(+, __plus)
 ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/8/valarray:1172:1: note:   template argument deduction/substitution failed:
/sandbox/1/a.cpp:16:32: note:   mismatched types 'const std::valarray<_Tp>' and 'int'
         c = (nho % 10 + '0') + c;
                                ^
In file included from /usr/include/x86_64-linux-gnu/c++/8/x32/bits/stdc++.h:95,
                 from /sandbox/1/a.cpp:1:
/usr/include/c++/8/valarray:1172:1: note: candidate: 'template<class _Tp> std::_Expr<std::_BinClos<std::__plus, std::_Constant, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__plus, _Tp>::result_type> std::operator+(const _Tp&, const std::valarray<_Tp>&)'
 _DEFINE_BINARY_OPERATOR(+, __plus)
 ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/8/valarray:1172:1: note:   template argument deduction/substitution failed:
/sandbox/1/a.cpp:16:32: note:   'bint' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::valarray<_Tp>'
         c = (nho % 10 + '0') + c;
                                ^
In file included from /usr/include/c++/8/bits/stl_algobase.h:67,
                 from /usr/include/c++/8/bits/specfun.h:45,
                 from /usr/include/c++/8/cmath:1892,
                 from /usr/include/x86_64-linux-gnu/c++/8/x32/bits/stdc++.h:41,
                 from /sandbox/1/a.cpp:1:
/usr/include/c++/8/bits/stl_iterator.h:970:5: note: candidate: 'template<class _Iterator, class _Container> __gnu_cxx::__normal_iterator<_Iterator, _Container> __gnu_cxx::operator+(typename __gnu_cxx::__normal_iterator<_Iterator, _Container>::difference_type, const __gnu_cxx::__normal_iterator<_Iterator, _Container>&)'
     operator+(typename __normal_iterator<_Iterator, _Container>::difference_type
     ^~~~~~~~
/usr/include/c++/8/bits/stl_iterator.h:970:5: note:   template argument deduction/substitution failed:
/sandbox/1/a.cpp:16:32: note:   'bint' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const __gnu_cxx::__normal_iterator<_Iterator, _Container>'
         c = (nho % 10 + '0') + c;
                                ^
/sandbox/1/a.cpp:8:18: warning: control reaches end of non-void function [-Wreturn-type]
     bint c(n, '0');
                  ^