Author
anonymous
over 5 years ago
Language
C++
Compiler
gcc HEAD 10.0.1 20200118 (experimental)
Options
Warnings
Boost 1.72.0
C++2a(GNU)
no pedantic
Author
anonymous
over 5 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.72.0/gcc-head/include -std=gnu++2a
prog.cc: In function 'int main()':
prog.cc:6:7: error: no match for 'operator<<' (operand types are 'int' and 'std::istream' {aka 'std::basic_istream<char>'})
6 | x << std::cin;
| ~ ^~ ~~~~~~~~
| | |
| int std::istream {aka std::basic_istream<char>}
prog.cc:6:7: note: candidate: 'operator<<(int, int)' (built-in)
6 | x << std::cin;
| ~~^~~~~~~~~~~
prog.cc:6:7: note: no known conversion for argument 2 from 'std::istream' {aka 'std::basic_istream<char>'} to 'int'
In file included from /opt/wandbox/gcc-head/include/c++/10.0.1/bits/basic_string.h:48,
from /opt/wandbox/gcc-head/include/c++/10.0.1/string:55,
from /opt/wandbox/gcc-head/include/c++/10.0.1/bits/locale_classes.h:40,
from /opt/wandbox/gcc-head/include/c++/10.0.1/bits/ios_base.h:41,
from /opt/wandbox/gcc-head/include/c++/10.0.1/ios:42,
from /opt/wandbox/gcc-head/include/c++/10.0.1/ostream:38,
from /opt/wandbox/gcc-head/include/c++/10.0.1/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.1/string_view:599:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, std::basic_string_view<_CharT, _Traits>)'
599 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.1/string_view:599:5: note: template argument deduction/substitution failed:
prog.cc:6:15: note: mismatched types 'std::basic_ostream<_CharT, _Traits>' and 'int'
6 | x << std::cin;
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.1/string:55,
from /opt/wandbox/gcc-head/include/c++/10.0.1/bits/locale_classes.h:40,
from /opt/wandbox/gcc-head/include/c++/10.0.1/bits/ios_base.h:41,
from /opt/wandbox/gcc-head/include/c++/10.0.1/ios:42,
from /opt/wandbox/gcc-head/include/c++/10.0.1/ostream:38,
from /opt/wandbox/gcc-head/include/c++/10.0.1/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.1/bits/basic_string.h:6428:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
6428 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.1/bits/basic_string.h:6428:5: note: template argument deduction/substitution failed:
prog.cc:6:15: note: mismatched types 'std::basic_ostream<_CharT, _Traits>' and 'int'
6 | x << std::cin;
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.1/bits/ios_base.h:46,
from /opt/wandbox/gcc-head/include/c++/10.0.1/ios:42,
from /opt/wandbox/gcc-head/include/c++/10.0.1/ostream:38,
from /opt/wandbox/gcc-head/include/c++/10.0.1/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.1/system_error:243:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::error_code&)'
243 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.1/system_error:243:5: note: template argument deduction/substitution failed:
prog.cc:6:15: note: mismatched types 'std::basic_ostream<_CharT, _Traits>' and 'int'
6 | x << std::cin;
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.1/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:506:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, _CharT)'
506 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:506:5: note: template argument deduction/substitution failed:
prog.cc:6:15: note: mismatched types 'std::basic_ostream<_CharT, _Traits>' and 'int'
6 | x << std::cin;
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.1/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:511:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, char)'
511 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:511:5: note: template argument deduction/substitution failed:
prog.cc:6:15: note: mismatched types 'std::basic_ostream<_CharT, _Traits>' and 'int'
6 | x << std::cin;
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.1/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:517:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, char)'
517 | operator<<(basic_ostream<char, _Traits>& __out, char __c)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:517:5: note: template argument deduction/substitution failed:
prog.cc:6:15: note: mismatched types 'std::basic_ostream<char, _Traits>' and 'int'
6 | x << std::cin;
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.1/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:523:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, signed char)'
523 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:523:5: note: template argument deduction/substitution failed:
prog.cc:6:15: note: mismatched types 'std::basic_ostream<char, _Traits>' and 'int'
6 | x << std::cin;
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.1/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:528:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, unsigned char)'
528 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:528:5: note: template argument deduction/substitution failed:
prog.cc:6:15: note: mismatched types 'std::basic_ostream<char, _Traits>' and 'int'
6 | x << std::cin;
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.1/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:538:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, wchar_t)' (deleted)
538 | operator<<(basic_ostream<char, _Traits>&, wchar_t) = delete;
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:538:5: note: template argument deduction/substitution failed:
prog.cc:6:15: note: mismatched types 'std::basic_ostream<char, _Traits>' and 'int'
6 | x << std::cin;
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.1/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:544:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, char8_t)' (deleted)
544 | operator<<(basic_ostream<char, _Traits>&, char8_t) = delete;
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:544:5: note: template argument deduction/substitution failed:
prog.cc:6:15: note: mismatched types 'std::basic_ostream<char, _Traits>' and 'int'
6 | x << std::cin;
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.1/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:549:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, char16_t)' (deleted)
549 | operator<<(basic_ostream<char, _Traits>&, char16_t) = delete;
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:549:5: note: template argument deduction/substitution failed:
prog.cc:6:15: note: mismatched types 'std::basic_ostream<char, _Traits>' and 'int'
6 | x << std::cin;
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.1/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:553:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, char32_t)' (deleted)
553 | operator<<(basic_ostream<char, _Traits>&, char32_t) = delete;
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:553:5: note: template argument deduction/substitution failed:
prog.cc:6:15: note: mismatched types 'std::basic_ostream<char, _Traits>' and 'int'
6 | x << std::cin;
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.1/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:559:5: note: candidate: 'template<class _Traits> std::basic_ostream<wchar_t, _Traits>& std::operator<<(std::basic_ostream<wchar_t, _Traits>&, char8_t)' (deleted)
559 | operator<<(basic_ostream<wchar_t, _Traits>&, char8_t) = delete;
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:559:5: note: template argument deduction/substitution failed:
prog.cc:6:15: note: mismatched types 'std::basic_ostream<wchar_t, _Traits>' and 'int'
6 | x << std::cin;
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.1/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:564:5: note: candidate: 'template<class _Traits> std::basic_ostream<wchar_t, _Traits>& std::operator<<(std::basic_ostream<wchar_t, _Traits>&, char16_t)' (deleted)
564 | operator<<(basic_ostream<wchar_t, _Traits>&, char16_t) = delete;
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:564:5: note: template argument deduction/substitution failed:
prog.cc:6:15: note: mismatched types 'std::basic_ostream<wchar_t, _Traits>' and 'int'
6 | x << std::cin;
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.1/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:568:5: note: candidate: 'template<class _Traits> std::basic_ostream<wchar_t, _Traits>& std::operator<<(std::basic_ostream<wchar_t, _Traits>&, char32_t)' (deleted)
568 | operator<<(basic_ostream<wchar_t, _Traits>&, char32_t) = delete;
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:568:5: note: template argument deduction/substitution failed:
prog.cc:6:15: note: mismatched types 'std::basic_ostream<wchar_t, _Traits>' and 'int'
6 | x << std::cin;
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.1/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:589:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const _CharT*)'
589 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:589:5: note: template argument deduction/substitution failed:
prog.cc:6:15: note: mismatched types 'std::basic_ostream<_CharT, _Traits>' and 'int'
6 | x << std::cin;
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.1/ostream:784,
from /opt/wandbox/gcc-head/include/c++/10.0.1/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.1/bits/ostream.tcc:321:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const char*)'
321 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.1/bits/ostream.tcc:321:5: note: template argument deduction/substitution failed:
prog.cc:6:15: note: mismatched types 'std::basic_ostream<_CharT, _Traits>' and 'int'
6 | x << std::cin;
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.1/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:606:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const char*)'
606 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:606:5: note: template argument deduction/substitution failed:
prog.cc:6:15: note: mismatched types 'std::basic_ostream<char, _Traits>' and 'int'
6 | x << std::cin;
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.1/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:619:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const signed char*)'
619 | operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:619:5: note: template argument deduction/substitution failed:
prog.cc:6:15: note: mismatched types 'std::basic_ostream<char, _Traits>' and 'int'
6 | x << std::cin;
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.1/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:624:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const unsigned char*)'
624 | operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:624:5: note: template argument deduction/substitution failed:
prog.cc:6:15: note: mismatched types 'std::basic_ostream<char, _Traits>' and 'int'
6 | x << std::cin;
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.1/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:634:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const wchar_t*)' (deleted)
634 | operator<<(basic_ostream<char, _Traits>&, const wchar_t*) = delete;
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:634:5: note: template argument deduction/substitution failed:
prog.cc:6:15: note: mismatched types 'std::basic_ostream<char, _Traits>' and 'int'
6 | x << std::cin;
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.1/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:640:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const char8_t*)' (deleted)
640 | operator<<(basic_ostream<char, _Traits>&, const char8_t*) = delete;
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:640:5: note: template argument deduction/substitution failed:
prog.cc:6:15: note: mismatched types 'std::basic_ostream<char, _Traits>' and 'int'
6 | x << std::cin;
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.1/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:645:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const char16_t*)' (deleted)
645 | operator<<(basic_ostream<char, _Traits>&, const char16_t*) = delete;
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:645:5: note: template argument deduction/substitution failed:
prog.cc:6:15: note: mismatched types 'std::basic_ostream<char, _Traits>' and 'int'
6 | x << std::cin;
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.1/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:649:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const char32_t*)' (deleted)
649 | operator<<(basic_ostream<char, _Traits>&, const char32_t*) = delete;
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:649:5: note: template argument deduction/substitution failed:
prog.cc:6:15: note: mismatched types 'std::basic_ostream<char, _Traits>' and 'int'
6 | x << std::cin;
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.1/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:655:5: note: candidate: 'template<class _Traits> std::basic_ostream<wchar_t, _Traits>& std::operator<<(std::basic_ostream<wchar_t, _Traits>&, const char8_t*)' (deleted)
655 | operator<<(basic_ostream<wchar_t, _Traits>&, const char8_t*) = delete;
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:655:5: note: template argument deduction/substitution failed:
prog.cc:6:15: note: mismatched types 'std::basic_ostream<wchar_t, _Traits>' and 'int'
6 | x << std::cin;
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.1/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:660:5: note: candidate: 'template<class _Traits> std::basic_ostream<wchar_t, _Traits>& std::operator<<(std::basic_ostream<wchar_t, _Traits>&, const char16_t*)' (deleted)
660 | operator<<(basic_ostream<wchar_t, _Traits>&, const char16_t*) = delete;
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:660:5: note: template argument deduction/substitution failed:
prog.cc:6:15: note: mismatched types 'std::basic_ostream<wchar_t, _Traits>' and 'int'
6 | x << std::cin;
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.1/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:664:5: note: candidate: 'template<class _Traits> std::basic_ostream<wchar_t, _Traits>& std::operator<<(std::basic_ostream<wchar_t, _Traits>&, const char32_t*)' (deleted)
664 | operator<<(basic_ostream<wchar_t, _Traits>&, const char32_t*) = delete;
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:664:5: note: template argument deduction/substitution failed:
prog.cc:6:15: note: mismatched types 'std::basic_ostream<wchar_t, _Traits>' and 'int'
6 | x << std::cin;
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.1/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:773:5: note: candidate: 'template<class _Ostream, class _Tp> typename std::enable_if<std::__and_<std::__not_<std::is_lvalue_reference<_Tp> >, std::__is_convertible_to_basic_ostream<_Ostream>, std::__is_insertable<typename std::__is_convertible_to_basic_ostream<_Tp>::__ostream_type, const _Tp&, void> >::value, typename std::__is_convertible_to_basic_ostream<_Tp>::__ostream_type>::type std::operator<<(_Ostream&&, const _Tp&)'
773 | operator<<(_Ostream&& __os, const _Tp& __x)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:773:5: note: template argument deduction/substitution failed:
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream: In substitution of 'template<class _Ostream, class _Tp> typename std::enable_if<std::__and_<std::__not_<std::is_lvalue_reference<_Tp> >, std::__is_convertible_to_basic_ostream<_Ostream>, std::__is_insertable<typename std::__is_convertible_to_basic_ostream<_Tp>::__ostream_type, const _Tp&, void> >::value, typename std::__is_convertible_to_basic_ostream<_Tp>::__ostream_type>::type std::operator<<(_Ostream&&, const _Tp&) [with _Ostream = int&; _Tp = std::basic_istream<char>]':
prog.cc:6:15: required from here
/opt/wandbox/gcc-head/include/c++/10.0.1/ostream:773:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
Exit Code:
1