Author
anonymous
almost 6 years ago
Language
C++
Compiler
gcc HEAD 10.0.0 20190517 (experimental)
Options
Warnings
Optimization
Verbose
Don't Use Boost
C++2a(GNU)
-pedantic-errors
Author
anonymous
almost 6 years ago
$ g++ prog.cc -Wall -Wextra -O2 -march=native -v -std=gnu++2a -pedantic-errors
Using built-in specs.
COLLECT_GCC=/opt/wandbox/gcc-head/bin/g++
COLLECT_LTO_WRAPPER=/opt/wandbox/gcc-head/libexec/gcc/x86_64-pc-linux-gnu/10.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../source/configure --prefix=/opt/wandbox/gcc-head --enable-languages=c,c++ --disable-multilib --without-ppl --without-cloog-ppl --enable-checking=release --disable-nls --enable-lto LDFLAGS=-Wl,-rpath,/opt/wandbox/gcc-head/lib,-rpath,/opt/wandbox/gcc-head/lib64,-rpath,/opt/wandbox/gcc-head/lib32
Thread model: posix
gcc version 10.0.0 20190517 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-o' 'prog.exe' '-I' '/opt/wandbox/boost-sml/include' '-I' '/opt/wandbox/boost-di/include' '-I' '/opt/wandbox/range-v3/include' '-I' '/opt/wandbox/nlohmann-json/src' '-I' '/opt/wandbox/cmcstl2/include' '-I' '/opt/wandbox/te/include' '-pedantic-errors' '-std=gnu++2a' '-Wall' '-Wextra' '-v' '-O2' '-march=native' '-shared-libgcc'
/opt/wandbox/gcc-head/libexec/gcc/x86_64-pc-linux-gnu/10.0.0/cc1plus -quiet -v -I /opt/wandbox/boost-sml/include -I /opt/wandbox/boost-di/include -I /opt/wandbox/range-v3/include -I /opt/wandbox/nlohmann-json/src -I /opt/wandbox/cmcstl2/include -I /opt/wandbox/te/include -imultiarch x86_64-linux-gnu -D_GNU_SOURCE prog.cc -march=sandybridge -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mno-movbe -maes -mno-sha -mpclmul -mpopcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-sgx -mno-bmi2 -mno-pconfig -mno-wbnoinvd -mno-tbm -mavx -mno-avx2 -msse4.2 -msse4.1 -mno-lzcnt -mno-rtm -mno-hle -mno-rdrnd -mno-f16c -mno-fsgsbase -mno-rdseed -mno-prfchw -mno-adx -mfxsr -mxsave -mxsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 -mno-clflushopt -mno-xsavec -mno-xsaves -mno-avx512dq -mno-avx512bw -mno-avx512vl -mno-avx512ifma -mno-avx512vbmi -mno-avx5124fmaps -mno-avx5124vnniw -mno-clwb -mno-mwaitx -mno-clzero -mno-pku -mno-rdpid -mno-gfni -mno-shstk -mno-avx512vbmi2 -mno-avx512vnni -mno-vaes -mno-vpclmulqdq -mno-avx512bitalg -mno-movdiri -mno-movdir64b -mno-waitpkg -mno-cldemote -mno-ptwrite -mno-avx512bf16 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=4096 -mtune=sandybridge -quiet -dumpbase prog.cc -auxbase prog -O2 -pedantic-errors -Wall -Wextra -std=gnu++2a -version -o /tmp/ccU6jJSA.s
GNU C++17 (GCC) version 10.0.0 20190517 (experimental) (x86_64-pc-linux-gnu)
compiled by GNU C version 10.0.0 20190517 (experimental), GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/opt/wandbox/gcc-head/lib/gcc/x86_64-pc-linux-gnu/10.0.0/../../../../x86_64-pc-linux-gnu/include"
ignoring nonexistent directory "/opt/wandbox/nlohmann-json/src"
#include "..." search starts here:
#include <...> search starts here:
/opt/wandbox/boost-sml/include
/opt/wandbox/boost-di/include
/opt/wandbox/range-v3/include
/opt/wandbox/cmcstl2/include
/opt/wandbox/te/include
/opt/wandbox/gcc-head/lib/gcc/x86_64-pc-linux-gnu/10.0.0/../../../../include/c++/10.0.0
/opt/wandbox/gcc-head/lib/gcc/x86_64-pc-linux-gnu/10.0.0/../../../../include/c++/10.0.0/x86_64-pc-linux-gnu
/opt/wandbox/gcc-head/lib/gcc/x86_64-pc-linux-gnu/10.0.0/../../../../include/c++/10.0.0/backward
/opt/wandbox/gcc-head/lib/gcc/x86_64-pc-linux-gnu/10.0.0/include
/opt/wandbox/gcc-head/include
/opt/wandbox/gcc-head/lib/gcc/x86_64-pc-linux-gnu/10.0.0/include-fixed
/usr/include/x86_64-linux-gnu
/usr/include
End of search list.
GNU C++17 (GCC) version 10.0.0 20190517 (experimental) (x86_64-pc-linux-gnu)
compiled by GNU C version 10.0.0 20190517 (experimental), GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 03e91f810dd9aa6d9ea05a0858efc926
prog.cc: In function 'int main()':
prog.cc:9:34: error: invalid user-defined conversion from 'main()::<lambda(std::string)>' to 'size_t' {aka 'long unsigned int'} [-fpermissive]
9 | size_t totalSize = accumulate(v.begin(), v.end(), [](string s){return s.size();});
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.cc:9:55: note: candidate is: 'constexpr main()::<lambda(std::string)>::operator long unsigned int (*)(std::string)() const' <near match>
9 | size_t totalSize = accumulate(v.begin(), v.end(), [](string s){return s.size();});
| ^
prog.cc:9:55: note: no known conversion from 'long unsigned int (*)(std::string)' {aka 'long unsigned int (*)(std::__cxx11::basic_string<char>)'} to 'size_t' {aka 'long unsigned int'}
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/numeric:62,
from prog.cc:2:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_numeric.h: In instantiation of '_Tp std::accumulate(_InputIterator, _InputIterator, _Tp) [with _InputIterator = __gnu_cxx::__normal_iterator<std::__cxx11::basic_string<char>*, std::vector<std::__cxx11::basic_string<char> > >; _Tp = main()::<lambda(std::string)>]':
prog.cc:9:85: required from here
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_numeric.h:135:39: error: no match for 'operator+' (operand types are 'std::remove_reference<main()::<lambda(std::string)>&>::type' {aka 'main()::<lambda(std::string)>'} and 'std::__cxx11::basic_string<char>')
135 | __init = _GLIBCXX_MOVE_IF_20(__init) + *__first;
| ^
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algobase.h:67,
from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/char_traits.h:39,
from /opt/wandbox/gcc-head/include/c++/10.0.0/ios:40,
from /opt/wandbox/gcc-head/include/c++/10.0.0/ostream:38,
from /opt/wandbox/gcc-head/include/c++/10.0.0/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_iterator.h:423: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>&)'
423 | operator+(typename reverse_iterator<_Iterator>::difference_type __n,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_iterator.h:423:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/numeric:62,
from prog.cc:2:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_numeric.h:135:39: note: 'std::__cxx11::basic_string<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
135 | __init = _GLIBCXX_MOVE_IF_20(__init) + *__first;
| ^
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algobase.h:67,
from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/char_traits.h:39,
from /opt/wandbox/gcc-head/include/c++/10.0.0/ios:40,
from /opt/wandbox/gcc-head/include/c++/10.0.0/ostream:38,
from /opt/wandbox/gcc-head/include/c++/10.0.0/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_iterator.h:1219: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>&)'
1219 | operator+(typename move_iterator<_Iterator>::difference_type __n,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_iterator.h:1219:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/numeric:62,
from prog.cc:2:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_numeric.h:135:39: note: 'std::__cxx11::basic_string<char>' is not derived from 'const std::move_iterator<_IteratorL>'
135 | __init = _GLIBCXX_MOVE_IF_20(__init) + *__first;
| ^
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/string:55,
from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/locale_classes.h:40,
from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/ios_base.h:41,
from /opt/wandbox/gcc-head/include/c++/10.0.0/ios:42,
from /opt/wandbox/gcc-head/include/c++/10.0.0/ostream:38,
from /opt/wandbox/gcc-head/include/c++/10.0.0/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/basic_string.h:6019: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>&)'
6019 | operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/basic_string.h:6019:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/numeric:62,
from prog.cc:2:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_numeric.h:135:39: note: 'std::remove_reference<main()::<lambda(std::string)>&>::type' {aka 'main()::<lambda(std::string)>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
135 | __init = _GLIBCXX_MOVE_IF_20(__init) + *__first;
| ^
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/string:56,
from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/locale_classes.h:40,
from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/ios_base.h:41,
from /opt/wandbox/gcc-head/include/c++/10.0.0/ios:42,
from /opt/wandbox/gcc-head/include/c++/10.0.0/ostream:38,
from /opt/wandbox/gcc-head/include/c++/10.0.0/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/basic_string.tcc:1158: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>&)'
1158 | operator+(const _CharT* __lhs,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/basic_string.tcc:1158:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/numeric:62,
from prog.cc:2:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_numeric.h:135:39: note: mismatched types 'const _CharT*' and 'main()::<lambda(std::string)>'
135 | __init = _GLIBCXX_MOVE_IF_20(__init) + *__first;
| ^
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/string:56,
from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/locale_classes.h:40,
from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/ios_base.h:41,
from /opt/wandbox/gcc-head/include/c++/10.0.0/ios:42,
from /opt/wandbox/gcc-head/include/c++/10.0.0/ostream:38,
from /opt/wandbox/gcc-head/include/c++/10.0.0/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/basic_string.tcc:1178: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>&)'
1178 | operator+(_CharT __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/basic_string.tcc:1178:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/numeric:62,
from prog.cc:2:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_numeric.h:135:39: note: deduced conflicting types for parameter '_CharT' ('main()::<lambda(std::string)>' and 'char')
135 | __init = _GLIBCXX_MOVE_IF_20(__init) + *__first;
| ^
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/string:55,
from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/locale_classes.h:40,
from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/ios_base.h:41,
from /opt/wandbox/gcc-head/include/c++/10.0.0/ios:42,
from /opt/wandbox/gcc-head/include/c++/10.0.0/ostream:38,
from /opt/wandbox/gcc-head/include/c++/10.0.0/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/basic_string.h:6056: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*)'
6056 | operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/basic_string.h:6056:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/numeric:62,
from prog.cc:2:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_numeric.h:135:39: note: 'std::remove_reference<main()::<lambda(std::string)>&>::type' {aka 'main()::<lambda(std::string)>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
135 | __init = _GLIBCXX_MOVE_IF_20(__init) + *__first;
| ^
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/string:55,
from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/locale_classes.h:40,
from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/ios_base.h:41,
from /opt/wandbox/gcc-head/include/c++/10.0.0/ios:42,
from /opt/wandbox/gcc-head/include/c++/10.0.0/ostream:38,
from /opt/wandbox/gcc-head/include/c++/10.0.0/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/basic_string.h:6072: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)'
6072 | operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/basic_string.h:6072:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/numeric:62,
from prog.cc:2:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_numeric.h:135:39: note: 'std::remove_reference<main()::<lambda(std::string)>&>::type' {aka 'main()::<lambda(std::string)>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
135 | __init = _GLIBCXX_MOVE_IF_20(__init) + *__first;
| ^
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/string:55,
from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/locale_classes.h:40,
from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/ios_base.h:41,
from /opt/wandbox/gcc-head/include/c++/10.0.0/ios:42,
from /opt/wandbox/gcc-head/include/c++/10.0.0/ostream:38,
from /opt/wandbox/gcc-head/include/c++/10.0.0/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/basic_string.h:6084: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>&)'
6084 | operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/basic_string.h:6084:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/numeric:62,
from prog.cc:2:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_numeric.h:135:39: note: 'std::remove_reference<main()::<lambda(std::string)>&>::type' {aka 'main()::<lambda(std::string)>'} is not derived from 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
135 | __init = _GLIBCXX_MOVE_IF_20(__init) + *__first;
| ^
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/string:55,
from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/locale_classes.h:40,
from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/ios_base.h:41,
from /opt/wandbox/gcc-head/include/c++/10.0.0/ios:42,
from /opt/wandbox/gcc-head/include/c++/10.0.0/ostream:38,
from /opt/wandbox/gcc-head/include/c++/10.0.0/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/basic_string.h:6090: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>&&)'
6090 | operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/basic_string.h:6090:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/numeric:62,
from prog.cc:2:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_numeric.h:135:39: note: 'std::remove_reference<main()::<lambda(std::string)>&>::type' {aka 'main()::<lambda(std::string)>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
135 | __init = _GLIBCXX_MOVE_IF_20(__init) + *__first;
| ^
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/string:55,
from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/locale_classes.h:40,
from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/ios_base.h:41,
from /opt/wandbox/gcc-head/include/c++/10.0.0/ios:42,
from /opt/wandbox/gcc-head/include/c++/10.0.0/ostream:38,
from /opt/wandbox/gcc-head/include/c++/10.0.0/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/basic_string.h:6096: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>&&)'
6096 | operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/basic_string.h:6096:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/numeric:62,
from prog.cc:2:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_numeric.h:135:39: note: 'std::remove_reference<main()::<lambda(std::string)>&>::type' {aka 'main()::<lambda(std::string)>'} is not derived from 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
135 | __init = _GLIBCXX_MOVE_IF_20(__init) + *__first;
| ^
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/string:55,
from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/locale_classes.h:40,
from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/ios_base.h:41,
from /opt/wandbox/gcc-head/include/c++/10.0.0/ios:42,
from /opt/wandbox/gcc-head/include/c++/10.0.0/ostream:38,
from /opt/wandbox/gcc-head/include/c++/10.0.0/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/basic_string.h:6118: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>&&)'
6118 | operator+(const _CharT* __lhs,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/basic_string.h:6118:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/numeric:62,
from prog.cc:2:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_numeric.h:135:39: note: mismatched types 'const _CharT*' and 'main()::<lambda(std::string)>'
135 | __init = _GLIBCXX_MOVE_IF_20(__init) + *__first;
| ^
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/string:55,
from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/locale_classes.h:40,
from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/ios_base.h:41,
from /opt/wandbox/gcc-head/include/c++/10.0.0/ios:42,
from /opt/wandbox/gcc-head/include/c++/10.0.0/ostream:38,
from /opt/wandbox/gcc-head/include/c++/10.0.0/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/basic_string.h:6124: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>&&)'
6124 | operator+(_CharT __lhs,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/basic_string.h:6124:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/numeric:62,
from prog.cc:2:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_numeric.h:135:39: note: deduced conflicting types for parameter '_CharT' ('main()::<lambda(std::string)>' and 'char')
135 | __init = _GLIBCXX_MOVE_IF_20(__init) + *__first;
| ^
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/string:55,
from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/locale_classes.h:40,
from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/ios_base.h:41,
from /opt/wandbox/gcc-head/include/c++/10.0.0/ios:42,
from /opt/wandbox/gcc-head/include/c++/10.0.0/ostream:38,
from /opt/wandbox/gcc-head/include/c++/10.0.0/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/basic_string.h:6130: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*)'
6130 | operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/basic_string.h:6130:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/numeric:62,
from prog.cc:2:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_numeric.h:135:39: note: 'std::remove_reference<main()::<lambda(std::string)>&>::type' {aka 'main()::<lambda(std::string)>'} is not derived from 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
135 | __init = _GLIBCXX_MOVE_IF_20(__init) + *__first;
| ^
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/string:55,
from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/locale_classes.h:40,
from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/ios_base.h:41,
from /opt/wandbox/gcc-head/include/c++/10.0.0/ios:42,
from /opt/wandbox/gcc-head/include/c++/10.0.0/ostream:38,
from /opt/wandbox/gcc-head/include/c++/10.0.0/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/basic_string.h:6136: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)'
6136 | operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/basic_string.h:6136:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/numeric:62,
from prog.cc:2:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_numeric.h:135:39: note: 'std::remove_reference<main()::<lambda(std::string)>&>::type' {aka 'main()::<lambda(std::string)>'} is not derived from 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
135 | __init = _GLIBCXX_MOVE_IF_20(__init) + *__first;
| ^
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algobase.h:67,
from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/char_traits.h:39,
from /opt/wandbox/gcc-head/include/c++/10.0.0/ios:40,
from /opt/wandbox/gcc-head/include/c++/10.0.0/ostream:38,
from /opt/wandbox/gcc-head/include/c++/10.0.0/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_iterator.h:996: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>&)'
996 | operator+(typename __normal_iterator<_Iterator, _Container>::difference_type
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_iterator.h:996:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/numeric:62,
from prog.cc:2:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_numeric.h:135:39: note: 'std::__cxx11::basic_string<char>' is not derived from 'const __gnu_cxx::__normal_iterator<_Iterator, _Container>'
135 | __init = _GLIBCXX_MOVE_IF_20(__init) + *__first;
| ^
Exit Code:
1