Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 4 years ago

Language

C++

Compiler

gcc 10.1.0

Options
Warnings
Optimization
Don't Use Boost
C++2a
-pedantic-errors

Author

anonymous

about 4 years ago

$ g++ prog.cc -Wall -Wextra -O2 -march=native -std=c++2a -pedantic-errors
prog.cc: In function 'int main()':
prog.cc:8:28: error: no match for 'operator+' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'std::size_t' {aka 'long unsigned int'})
    8 |         std::cout << *(str + i) << std::endl;
      |                        ~~~ ^ ~
      |                        |     |
      |                        |     std::size_t {aka long unsigned int}
      |                        std::string {aka std::__cxx11::basic_string<char>}
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/stl_algobase.h:67,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/char_traits.h:39,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/stl_iterator.h:508:5: note: candidate: 'template<class _Iterator> constexpr std::reverse_iterator<_IteratorL> std::operator+(typename std::reverse_iterator<_IteratorL>::difference_type, const std::reverse_iterator<_IteratorL>&)'
  508 |     operator+(typename reverse_iterator<_Iterator>::difference_type __n,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/stl_iterator.h:508:5: note:   template argument deduction/substitution failed:
prog.cc:8:30: note:   mismatched types 'const std::reverse_iterator<_IteratorL>' and 'std::size_t' {aka 'long unsigned int'}
    8 |         std::cout << *(str + i) << std::endl;
      |                              ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/stl_algobase.h:67,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/char_traits.h:39,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/stl_iterator.h:1540: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>&)'
 1540 |     operator+(typename move_iterator<_Iterator>::difference_type __n,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/stl_iterator.h:1540:5: note:   template argument deduction/substitution failed:
prog.cc:8:30: note:   mismatched types 'const std::move_iterator<_IteratorL>' and 'std::size_t' {aka 'long unsigned int'}
    8 |         std::cout << *(str + i) << std::endl;
      |                              ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:55,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6022: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>&)'
 6022 |     operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6022:5: note:   template argument deduction/substitution failed:
prog.cc:8:30: note:   mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'std::size_t' {aka 'long unsigned int'}
    8 |         std::cout << *(str + i) << std::endl;
      |                              ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:56,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.tcc:1160: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>&)'
 1160 |     operator+(const _CharT* __lhs,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.tcc:1160:5: note:   template argument deduction/substitution failed:
prog.cc:8:30: note:   mismatched types 'const _CharT*' and 'std::__cxx11::basic_string<char>'
    8 |         std::cout << *(str + i) << std::endl;
      |                              ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:56,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.tcc:1180: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>&)'
 1180 |     operator+(_CharT __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs)
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.tcc:1180:5: note:   template argument deduction/substitution failed:
prog.cc:8:30: note:   mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'std::size_t' {aka 'long unsigned int'}
    8 |         std::cout << *(str + i) << std::endl;
      |                              ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:55,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6059: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*)'
 6059 |     operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6059:5: note:   template argument deduction/substitution failed:
prog.cc:8:30: note:   mismatched types 'const _CharT*' and 'long unsigned int'
    8 |         std::cout << *(str + i) << std::endl;
      |                              ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:55,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6075: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)'
 6075 |     operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs)
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6075:5: note:   template argument deduction/substitution failed:
prog.cc:8:30: note:   deduced conflicting types for parameter '_CharT' ('char' and 'long unsigned int')
    8 |         std::cout << *(str + i) << std::endl;
      |                              ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:55,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6087: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>&)'
 6087 |     operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6087:5: note:   template argument deduction/substitution failed:
prog.cc:8:30: note:   mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'std::size_t' {aka 'long unsigned int'}
    8 |         std::cout << *(str + i) << std::endl;
      |                              ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:55,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6093: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>&&)'
 6093 |     operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6093:5: note:   template argument deduction/substitution failed:
prog.cc:8:30: note:   mismatched types 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'std::size_t' {aka 'long unsigned int'}
    8 |         std::cout << *(str + i) << std::endl;
      |                              ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:55,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6099: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>&&)'
 6099 |     operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6099:5: note:   template argument deduction/substitution failed:
prog.cc:8:30: note:   mismatched types 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'std::size_t' {aka 'long unsigned int'}
    8 |         std::cout << *(str + i) << std::endl;
      |                              ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:55,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6121: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>&&)'
 6121 |     operator+(const _CharT* __lhs,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6121:5: note:   template argument deduction/substitution failed:
prog.cc:8:30: note:   mismatched types 'const _CharT*' and 'std::__cxx11::basic_string<char>'
    8 |         std::cout << *(str + i) << std::endl;
      |                              ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:55,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6127: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>&&)'
 6127 |     operator+(_CharT __lhs,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6127:5: note:   template argument deduction/substitution failed:
prog.cc:8:30: note:   mismatched types 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'std::size_t' {aka 'long unsigned int'}
    8 |         std::cout << *(str + i) << std::endl;
      |                              ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:55,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6133: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*)'
 6133 |     operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6133:5: note:   template argument deduction/substitution failed:
prog.cc:8:30: note:   mismatched types 'const _CharT*' and 'long unsigned int'
    8 |         std::cout << *(str + i) << std::endl;
      |                              ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:55,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6139: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)'
 6139 |     operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6139:5: note:   template argument deduction/substitution failed:
prog.cc:8:30: note:   deduced conflicting types for parameter '_CharT' ('char' and 'long unsigned int')
    8 |         std::cout << *(str + i) << std::endl;
      |                              ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/stl_algobase.h:67,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/char_traits.h:39,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/stl_iterator.h:1185:5: note: candidate: 'template<class _Iterator, class _Container> constexpr __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>&)'
 1185 |     operator+(typename __normal_iterator<_Iterator, _Container>::difference_type
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/stl_iterator.h:1185:5: note:   template argument deduction/substitution failed:
prog.cc:8:30: note:   mismatched types 'const __gnu_cxx::__normal_iterator<_Iterator, _Container>' and 'std::size_t' {aka 'long unsigned int'}
    8 |         std::cout << *(str + i) << std::endl;
      |                              ^
prog.cc:9:27: error: no match for 'operator+' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'std::size_t' {aka 'long unsigned int'})
    9 |         std::cout << (str + i) << std::endl;
      |                       ~~~ ^ ~
      |                       |     |
      |                       |     std::size_t {aka long unsigned int}
      |                       std::string {aka std::__cxx11::basic_string<char>}
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/stl_algobase.h:67,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/char_traits.h:39,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/stl_iterator.h:508:5: note: candidate: 'template<class _Iterator> constexpr std::reverse_iterator<_IteratorL> std::operator+(typename std::reverse_iterator<_IteratorL>::difference_type, const std::reverse_iterator<_IteratorL>&)'
  508 |     operator+(typename reverse_iterator<_Iterator>::difference_type __n,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/stl_iterator.h:508:5: note:   template argument deduction/substitution failed:
prog.cc:9:29: note:   mismatched types 'const std::reverse_iterator<_IteratorL>' and 'std::size_t' {aka 'long unsigned int'}
    9 |         std::cout << (str + i) << std::endl;
      |                             ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/stl_algobase.h:67,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/char_traits.h:39,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/stl_iterator.h:1540: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>&)'
 1540 |     operator+(typename move_iterator<_Iterator>::difference_type __n,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/stl_iterator.h:1540:5: note:   template argument deduction/substitution failed:
prog.cc:9:29: note:   mismatched types 'const std::move_iterator<_IteratorL>' and 'std::size_t' {aka 'long unsigned int'}
    9 |         std::cout << (str + i) << std::endl;
      |                             ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:55,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6022: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>&)'
 6022 |     operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6022:5: note:   template argument deduction/substitution failed:
prog.cc:9:29: note:   mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'std::size_t' {aka 'long unsigned int'}
    9 |         std::cout << (str + i) << std::endl;
      |                             ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:56,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.tcc:1160: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>&)'
 1160 |     operator+(const _CharT* __lhs,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.tcc:1160:5: note:   template argument deduction/substitution failed:
prog.cc:9:29: note:   mismatched types 'const _CharT*' and 'std::__cxx11::basic_string<char>'
    9 |         std::cout << (str + i) << std::endl;
      |                             ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:56,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.tcc:1180: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>&)'
 1180 |     operator+(_CharT __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs)
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.tcc:1180:5: note:   template argument deduction/substitution failed:
prog.cc:9:29: note:   mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'std::size_t' {aka 'long unsigned int'}
    9 |         std::cout << (str + i) << std::endl;
      |                             ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:55,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6059: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*)'
 6059 |     operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6059:5: note:   template argument deduction/substitution failed:
prog.cc:9:29: note:   mismatched types 'const _CharT*' and 'long unsigned int'
    9 |         std::cout << (str + i) << std::endl;
      |                             ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:55,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6075: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)'
 6075 |     operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs)
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6075:5: note:   template argument deduction/substitution failed:
prog.cc:9:29: note:   deduced conflicting types for parameter '_CharT' ('char' and 'long unsigned int')
    9 |         std::cout << (str + i) << std::endl;
      |                             ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:55,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6087: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>&)'
 6087 |     operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6087:5: note:   template argument deduction/substitution failed:
prog.cc:9:29: note:   mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'std::size_t' {aka 'long unsigned int'}
    9 |         std::cout << (str + i) << std::endl;
      |                             ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:55,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6093: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>&&)'
 6093 |     operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6093:5: note:   template argument deduction/substitution failed:
prog.cc:9:29: note:   mismatched types 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'std::size_t' {aka 'long unsigned int'}
    9 |         std::cout << (str + i) << std::endl;
      |                             ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:55,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6099: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>&&)'
 6099 |     operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6099:5: note:   template argument deduction/substitution failed:
prog.cc:9:29: note:   mismatched types 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'std::size_t' {aka 'long unsigned int'}
    9 |         std::cout << (str + i) << std::endl;
      |                             ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:55,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6121: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>&&)'
 6121 |     operator+(const _CharT* __lhs,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6121:5: note:   template argument deduction/substitution failed:
prog.cc:9:29: note:   mismatched types 'const _CharT*' and 'std::__cxx11::basic_string<char>'
    9 |         std::cout << (str + i) << std::endl;
      |                             ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:55,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6127: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>&&)'
 6127 |     operator+(_CharT __lhs,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6127:5: note:   template argument deduction/substitution failed:
prog.cc:9:29: note:   mismatched types 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'std::size_t' {aka 'long unsigned int'}
    9 |         std::cout << (str + i) << std::endl;
      |                             ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:55,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6133: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*)'
 6133 |     operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6133:5: note:   template argument deduction/substitution failed:
prog.cc:9:29: note:   mismatched types 'const _CharT*' and 'long unsigned int'
    9 |         std::cout << (str + i) << std::endl;
      |                             ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:55,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6139: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)'
 6139 |     operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6139:5: note:   template argument deduction/substitution failed:
prog.cc:9:29: note:   deduced conflicting types for parameter '_CharT' ('char' and 'long unsigned int')
    9 |         std::cout << (str + i) << std::endl;
      |                             ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/stl_algobase.h:67,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/char_traits.h:39,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/stl_iterator.h:1185:5: note: candidate: 'template<class _Iterator, class _Container> constexpr __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>&)'
 1185 |     operator+(typename __normal_iterator<_Iterator, _Container>::difference_type
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/stl_iterator.h:1185:5: note:   template argument deduction/substitution failed:
prog.cc:9:29: note:   mismatched types 'const __gnu_cxx::__normal_iterator<_Iterator, _Container>' and 'std::size_t' {aka 'long unsigned int'}
    9 |         std::cout << (str + i) << std::endl;
      |                             ^
prog.cc:10:29: error: no match for 'operator+' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'std::size_t' {aka 'long unsigned int'})
   10 |         std::cout << &*(str + i) << std::endl;
      |                         ~~~ ^ ~
      |                         |     |
      |                         |     std::size_t {aka long unsigned int}
      |                         std::string {aka std::__cxx11::basic_string<char>}
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/stl_algobase.h:67,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/char_traits.h:39,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/stl_iterator.h:508:5: note: candidate: 'template<class _Iterator> constexpr std::reverse_iterator<_IteratorL> std::operator+(typename std::reverse_iterator<_IteratorL>::difference_type, const std::reverse_iterator<_IteratorL>&)'
  508 |     operator+(typename reverse_iterator<_Iterator>::difference_type __n,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/stl_iterator.h:508:5: note:   template argument deduction/substitution failed:
prog.cc:10:31: note:   mismatched types 'const std::reverse_iterator<_IteratorL>' and 'std::size_t' {aka 'long unsigned int'}
   10 |         std::cout << &*(str + i) << std::endl;
      |                               ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/stl_algobase.h:67,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/char_traits.h:39,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/stl_iterator.h:1540: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>&)'
 1540 |     operator+(typename move_iterator<_Iterator>::difference_type __n,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/stl_iterator.h:1540:5: note:   template argument deduction/substitution failed:
prog.cc:10:31: note:   mismatched types 'const std::move_iterator<_IteratorL>' and 'std::size_t' {aka 'long unsigned int'}
   10 |         std::cout << &*(str + i) << std::endl;
      |                               ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:55,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6022: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>&)'
 6022 |     operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6022:5: note:   template argument deduction/substitution failed:
prog.cc:10:31: note:   mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'std::size_t' {aka 'long unsigned int'}
   10 |         std::cout << &*(str + i) << std::endl;
      |                               ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:56,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.tcc:1160: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>&)'
 1160 |     operator+(const _CharT* __lhs,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.tcc:1160:5: note:   template argument deduction/substitution failed:
prog.cc:10:31: note:   mismatched types 'const _CharT*' and 'std::__cxx11::basic_string<char>'
   10 |         std::cout << &*(str + i) << std::endl;
      |                               ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:56,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.tcc:1180: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>&)'
 1180 |     operator+(_CharT __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs)
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.tcc:1180:5: note:   template argument deduction/substitution failed:
prog.cc:10:31: note:   mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'std::size_t' {aka 'long unsigned int'}
   10 |         std::cout << &*(str + i) << std::endl;
      |                               ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:55,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6059: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*)'
 6059 |     operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6059:5: note:   template argument deduction/substitution failed:
prog.cc:10:31: note:   mismatched types 'const _CharT*' and 'long unsigned int'
   10 |         std::cout << &*(str + i) << std::endl;
      |                               ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:55,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6075: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)'
 6075 |     operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs)
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6075:5: note:   template argument deduction/substitution failed:
prog.cc:10:31: note:   deduced conflicting types for parameter '_CharT' ('char' and 'long unsigned int')
   10 |         std::cout << &*(str + i) << std::endl;
      |                               ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:55,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6087: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>&)'
 6087 |     operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6087:5: note:   template argument deduction/substitution failed:
prog.cc:10:31: note:   mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'std::size_t' {aka 'long unsigned int'}
   10 |         std::cout << &*(str + i) << std::endl;
      |                               ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:55,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6093: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>&&)'
 6093 |     operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6093:5: note:   template argument deduction/substitution failed:
prog.cc:10:31: note:   mismatched types 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'std::size_t' {aka 'long unsigned int'}
   10 |         std::cout << &*(str + i) << std::endl;
      |                               ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:55,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6099: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>&&)'
 6099 |     operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6099:5: note:   template argument deduction/substitution failed:
prog.cc:10:31: note:   mismatched types 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'std::size_t' {aka 'long unsigned int'}
   10 |         std::cout << &*(str + i) << std::endl;
      |                               ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:55,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6121: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>&&)'
 6121 |     operator+(const _CharT* __lhs,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6121:5: note:   template argument deduction/substitution failed:
prog.cc:10:31: note:   mismatched types 'const _CharT*' and 'std::__cxx11::basic_string<char>'
   10 |         std::cout << &*(str + i) << std::endl;
      |                               ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:55,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6127: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>&&)'
 6127 |     operator+(_CharT __lhs,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6127:5: note:   template argument deduction/substitution failed:
prog.cc:10:31: note:   mismatched types 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'std::size_t' {aka 'long unsigned int'}
   10 |         std::cout << &*(str + i) << std::endl;
      |                               ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:55,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6133: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*)'
 6133 |     operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6133:5: note:   template argument deduction/substitution failed:
prog.cc:10:31: note:   mismatched types 'const _CharT*' and 'long unsigned int'
   10 |         std::cout << &*(str + i) << std::endl;
      |                               ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:55,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6139: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)'
 6139 |     operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.h:6139:5: note:   template argument deduction/substitution failed:
prog.cc:10:31: note:   deduced conflicting types for parameter '_CharT' ('char' and 'long unsigned int')
   10 |         std::cout << &*(str + i) << std::endl;
      |                               ^
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/stl_algobase.h:67,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/char_traits.h:39,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/stl_iterator.h:1185:5: note: candidate: 'template<class _Iterator, class _Container> constexpr __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>&)'
 1185 |     operator+(typename __normal_iterator<_Iterator, _Container>::difference_type
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/stl_iterator.h:1185:5: note:   template argument deduction/substitution failed:
prog.cc:10:31: note:   mismatched types 'const __gnu_cxx::__normal_iterator<_Iterator, _Container>' and 'std::size_t' {aka 'long unsigned int'}
   10 |         std::cout << &*(str + i) << std::endl;
      |                               ^
Exit Code:
1