Author
anonymous
almost 6 years ago
Language
C++
Compiler
gcc HEAD 11.0.0 20200820 (experimental)
Options
Warnings
Boost 1.73.0
C++2a(GNU)
no pedantic
Author
anonymous
almost 6 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=gnu++2a In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/bits/stl_algobase.h:67,
from /opt/wandbox/gcc-head/include/c++/11.0.0/algorithm:61,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/stl_iterator.h: In instantiation of 'class std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>':
prog.cc:577:33: required from 'std::ostream& operator<<(std::ostream&, const BTree<int, 2>&)'
prog.cc:604:18: required from here
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/stl_iterator.h:317:7: error: invalid parameter type 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::difference_type' {aka 'void'}
317 | operator+(difference_type __n) const
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/stl_iterator.h:317:7: error: in declaration 'constexpr std::reverse_iterator<_Iterator> std::reverse_iterator<_Iterator>::operator+(std::reverse_iterator<_Iterator>::difference_type) const'
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/stl_iterator.h:327:7: error: invalid parameter type 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::difference_type' {aka 'void'}
327 | operator+=(difference_type __n)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/stl_iterator.h:327:7: error: in declaration 'constexpr std::reverse_iterator<_Iterator>& std::reverse_iterator<_Iterator>::operator+=(std::reverse_iterator<_Iterator>::difference_type)'
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/stl_iterator.h:339:7: error: invalid parameter type 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::difference_type' {aka 'void'}
339 | operator-(difference_type __n) const
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/stl_iterator.h:339:7: error: in declaration 'constexpr std::reverse_iterator<_Iterator> std::reverse_iterator<_Iterator>::operator-(std::reverse_iterator<_Iterator>::difference_type) const'
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/stl_iterator.h:349:7: error: invalid parameter type 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::difference_type' {aka 'void'}
349 | operator-=(difference_type __n)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/stl_iterator.h:349:7: error: in declaration 'constexpr std::reverse_iterator<_Iterator>& std::reverse_iterator<_Iterator>::operator-=(std::reverse_iterator<_Iterator>::difference_type)'
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/stl_iterator.h:361:7: error: invalid parameter type 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::difference_type' {aka 'void'}
361 | operator[](difference_type __n) const
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/stl_iterator.h:361:7: error: in declaration 'constexpr std::reverse_iterator<_Iterator>::reference std::reverse_iterator<_Iterator>::operator[](std::reverse_iterator<_Iterator>::difference_type) const'
prog.cc: In instantiation of 'std::ostream& operator<<(std::ostream&, const BTree<int, 2>&)':
prog.cc:604:18: required from here
prog.cc:578:16: error: no match for 'operator<<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'})
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/iostream:39,
from prog.cc:6:
/opt/wandbox/gcc-head/include/c++/11.0.0/ostream:108:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ostream_type& (*)(std::basic_ostream<_CharT, _Traits>::__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]'
108 | operator<<(__ostream_type& (*__pf)(__ostream_type&))
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/ostream:108:36: note: no known conversion for argument 1 from 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'} to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&)' {aka 'std::basic_ostream<char>& (*)(std::basic_ostream<char>&)'}
108 | operator<<(__ostream_type& (*__pf)(__ostream_type&))
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/ostream:117:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ios_type& (*)(std::basic_ostream<_CharT, _Traits>::__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>; std::basic_ostream<_CharT, _Traits>::__ios_type = std::basic_ios<char>]'
117 | operator<<(__ios_type& (*__pf)(__ios_type&))
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/ostream:117:32: note: no known conversion for argument 1 from 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'} to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'}
117 | operator<<(__ios_type& (*__pf)(__ios_type&))
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/ostream:127:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]'
127 | operator<<(ios_base& (*__pf) (ios_base&))
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/ostream:127:30: note: no known conversion for argument 1 from 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'} to 'std::ios_base& (*)(std::ios_base&)'
127 | operator<<(ios_base& (*__pf) (ios_base&))
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/ostream:166:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]'
166 | operator<<(long __n)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/ostream:166:23: note: no known conversion for argument 1 from 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'} to 'long int'
166 | operator<<(long __n)
| ~~~~~^~~
/opt/wandbox/gcc-head/include/c++/11.0.0/ostream:170:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]'
170 | operator<<(unsigned long __n)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/ostream:170:32: note: no known conversion for argument 1 from 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'} to 'long unsigned int'
170 | operator<<(unsigned long __n)
| ~~~~~~~~~~~~~~^~~
/opt/wandbox/gcc-head/include/c++/11.0.0/ostream:174:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]'
174 | operator<<(bool __n)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/ostream:174:23: note: no known conversion for argument 1 from 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'} to 'bool'
174 | operator<<(bool __n)
| ~~~~~^~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/ostream:784,
from /opt/wandbox/gcc-head/include/c++/11.0.0/iostream:39,
from prog.cc:6:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/ostream.tcc:91:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]'
91 | basic_ostream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/ostream.tcc:92:22: note: no known conversion for argument 1 from 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'} to 'short int'
92 | operator<<(short __n)
| ~~~~~~^~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/iostream:39,
from prog.cc:6:
/opt/wandbox/gcc-head/include/c++/11.0.0/ostream:181:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]'
181 | operator<<(unsigned short __n)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/ostream:181:33: note: no known conversion for argument 1 from 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'} to 'short unsigned int'
181 | operator<<(unsigned short __n)
| ~~~~~~~~~~~~~~~^~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/ostream:784,
from /opt/wandbox/gcc-head/include/c++/11.0.0/iostream:39,
from prog.cc:6:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/ostream.tcc:105:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]'
105 | basic_ostream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/ostream.tcc:106:20: note: no known conversion for argument 1 from 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'} to 'int'
106 | operator<<(int __n)
| ~~~~^~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/iostream:39,
from prog.cc:6:
/opt/wandbox/gcc-head/include/c++/11.0.0/ostream:192:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]'
192 | operator<<(unsigned int __n)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/ostream:192:31: note: no known conversion for argument 1 from 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'} to 'unsigned int'
192 | operator<<(unsigned int __n)
| ~~~~~~~~~~~~~^~~
/opt/wandbox/gcc-head/include/c++/11.0.0/ostream:201:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]'
201 | operator<<(long long __n)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/ostream:201:28: note: no known conversion for argument 1 from 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'} to 'long long int'
201 | operator<<(long long __n)
| ~~~~~~~~~~^~~
/opt/wandbox/gcc-head/include/c++/11.0.0/ostream:205:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]'
205 | operator<<(unsigned long long __n)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/ostream:205:37: note: no known conversion for argument 1 from 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'} to 'long long unsigned int'
205 | operator<<(unsigned long long __n)
| ~~~~~~~~~~~~~~~~~~~^~~
/opt/wandbox/gcc-head/include/c++/11.0.0/ostream:220:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]'
220 | operator<<(double __f)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/ostream:220:25: note: no known conversion for argument 1 from 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'} to 'double'
220 | operator<<(double __f)
| ~~~~~~~^~~
/opt/wandbox/gcc-head/include/c++/11.0.0/ostream:224:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]'
224 | operator<<(float __f)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/ostream:224:24: note: no known conversion for argument 1 from 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'} to 'float'
224 | operator<<(float __f)
| ~~~~~~^~~
/opt/wandbox/gcc-head/include/c++/11.0.0/ostream:232:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]'
232 | operator<<(long double __f)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/ostream:232:30: note: no known conversion for argument 1 from 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'} to 'long double'
232 | operator<<(long double __f)
| ~~~~~~~~~~~~^~~
/opt/wandbox/gcc-head/include/c++/11.0.0/ostream:245:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]'
245 | operator<<(const void* __p)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/ostream:245:30: note: no known conversion for argument 1 from 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'} to 'const void*'
245 | operator<<(const void* __p)
| ~~~~~~~~~~~~^~~
/opt/wandbox/gcc-head/include/c++/11.0.0/ostream:250:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::nullptr_t) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>; std::nullptr_t = std::nullptr_t]'
250 | operator<<(nullptr_t)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/ostream:250:18: note: no known conversion for argument 1 from 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'} to 'std::nullptr_t'
250 | operator<<(nullptr_t)
| ^~~~~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/ostream:784,
from /opt/wandbox/gcc-head/include/c++/11.0.0/iostream:39,
from prog.cc:6:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/ostream.tcc:119:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__streambuf_type*) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__streambuf_type = std::basic_streambuf<char>]'
119 | basic_ostream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/ostream.tcc:120:34: note: no known conversion for argument 1 from 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'} to 'std::basic_ostream<char>::__streambuf_type*' {aka 'std::basic_streambuf<char>*'}
120 | operator<<(__streambuf_type* __sbin)
| ~~~~~~~~~~~~~~~~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/bits/basic_string.h:48,
from /opt/wandbox/gcc-head/include/c++/11.0.0/string:55,
from /opt/wandbox/gcc-head/include/c++/11.0.0/bits/locale_classes.h:40,
from /opt/wandbox/gcc-head/include/c++/11.0.0/bits/ios_base.h:41,
from /opt/wandbox/gcc-head/include/c++/11.0.0/streambuf:41,
from /opt/wandbox/gcc-head/include/c++/11.0.0/bits/streambuf_iterator.h:35,
from /opt/wandbox/gcc-head/include/c++/11.0.0/iterator:66,
from /opt/wandbox/gcc-head/include/c++/11.0.0/bits/ranges_algobase.h:36,
from /opt/wandbox/gcc-head/include/c++/11.0.0/bits/ranges_algo.h:35,
from /opt/wandbox/gcc-head/include/c++/11.0.0/algorithm:64,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/11.0.0/string_view:622: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>)'
622 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/string_view:622:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'void'
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/string:55,
from /opt/wandbox/gcc-head/include/c++/11.0.0/bits/locale_classes.h:40,
from /opt/wandbox/gcc-head/include/c++/11.0.0/bits/ios_base.h:41,
from /opt/wandbox/gcc-head/include/c++/11.0.0/streambuf:41,
from /opt/wandbox/gcc-head/include/c++/11.0.0/bits/streambuf_iterator.h:35,
from /opt/wandbox/gcc-head/include/c++/11.0.0/iterator:66,
from /opt/wandbox/gcc-head/include/c++/11.0.0/bits/ranges_algobase.h:36,
from /opt/wandbox/gcc-head/include/c++/11.0.0/bits/ranges_algo.h:35,
from /opt/wandbox/gcc-head/include/c++/11.0.0/algorithm:64,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/basic_string.h:6465: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>&)'
6465 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/basic_string.h:6465:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/bits/ios_base.h:46,
from /opt/wandbox/gcc-head/include/c++/11.0.0/streambuf:41,
from /opt/wandbox/gcc-head/include/c++/11.0.0/bits/streambuf_iterator.h:35,
from /opt/wandbox/gcc-head/include/c++/11.0.0/iterator:66,
from /opt/wandbox/gcc-head/include/c++/11.0.0/bits/ranges_algobase.h:36,
from /opt/wandbox/gcc-head/include/c++/11.0.0/bits/ranges_algo.h:35,
from /opt/wandbox/gcc-head/include/c++/11.0.0/algorithm:64,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/11.0.0/system_error:263:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::error_code&)'
263 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/system_error:263:5: note: template argument deduction/substitution failed:
prog.cc:578:19: note: cannot convert 'it.std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::operator*()' (type 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}) to type 'const std::error_code&'
578 | os << *it << ' ';
| ^~~
In file included from prog.cc:4:
/opt/wandbox/gcc-head/include/c++/11.0.0/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(std::byte, _IntegerType)'
125 | operator<<(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/cstddef:125:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: cannot convert 'os' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte'
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/iostream:39,
from prog.cc:6:
/opt/wandbox/gcc-head/include/c++/11.0.0/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++/11.0.0/ostream:506:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: deduced conflicting types for parameter '_CharT' ('char' and 'void')
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/iostream:39,
from prog.cc:6:
/opt/wandbox/gcc-head/include/c++/11.0.0/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++/11.0.0/ostream:511:5: note: template argument deduction/substitution failed:
prog.cc:578:19: note: cannot convert 'it.std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::operator*()' (type 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}) to type 'char'
578 | os << *it << ' ';
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/iostream:39,
from prog.cc:6:
/opt/wandbox/gcc-head/include/c++/11.0.0/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++/11.0.0/ostream:517:5: note: template argument deduction/substitution failed:
prog.cc:578:19: note: cannot convert 'it.std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::operator*()' (type 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}) to type 'char'
578 | os << *it << ' ';
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/iostream:39,
from prog.cc:6:
/opt/wandbox/gcc-head/include/c++/11.0.0/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++/11.0.0/ostream:523:5: note: template argument deduction/substitution failed:
prog.cc:578:19: note: cannot convert 'it.std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::operator*()' (type 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}) to type 'signed char'
578 | os << *it << ' ';
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/iostream:39,
from prog.cc:6:
/opt/wandbox/gcc-head/include/c++/11.0.0/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++/11.0.0/ostream:528:5: note: template argument deduction/substitution failed:
prog.cc:578:19: note: cannot convert 'it.std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::operator*()' (type 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}) to type 'unsigned char'
578 | os << *it << ' ';
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/iostream:39,
from prog.cc:6:
/opt/wandbox/gcc-head/include/c++/11.0.0/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++/11.0.0/ostream:538:5: note: template argument deduction/substitution failed:
prog.cc:578:19: note: cannot convert 'it.std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::operator*()' (type 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}) to type 'wchar_t'
578 | os << *it << ' ';
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/iostream:39,
from prog.cc:6:
/opt/wandbox/gcc-head/include/c++/11.0.0/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++/11.0.0/ostream:544:5: note: template argument deduction/substitution failed:
prog.cc:578:19: note: cannot convert 'it.std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::operator*()' (type 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}) to type 'char8_t'
578 | os << *it << ' ';
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/iostream:39,
from prog.cc:6:
/opt/wandbox/gcc-head/include/c++/11.0.0/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++/11.0.0/ostream:549:5: note: template argument deduction/substitution failed:
prog.cc:578:19: note: cannot convert 'it.std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::operator*()' (type 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}) to type 'char16_t'
578 | os << *it << ' ';
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/iostream:39,
from prog.cc:6:
/opt/wandbox/gcc-head/include/c++/11.0.0/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++/11.0.0/ostream:553:5: note: template argument deduction/substitution failed:
prog.cc:578:19: note: cannot convert 'it.std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::operator*()' (type 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}) to type 'char32_t'
578 | os << *it << ' ';
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/iostream:39,
from prog.cc:6:
/opt/wandbox/gcc-head/include/c++/11.0.0/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++/11.0.0/ostream:559:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'wchar_t' and 'char'
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/iostream:39,
from prog.cc:6:
/opt/wandbox/gcc-head/include/c++/11.0.0/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++/11.0.0/ostream:564:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'wchar_t' and 'char'
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/iostream:39,
from prog.cc:6:
/opt/wandbox/gcc-head/include/c++/11.0.0/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++/11.0.0/ostream:568:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'wchar_t' and 'char'
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/iostream:39,
from prog.cc:6:
/opt/wandbox/gcc-head/include/c++/11.0.0/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++/11.0.0/ostream:589:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'const _CharT*' and 'void'
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/ostream:784,
from /opt/wandbox/gcc-head/include/c++/11.0.0/iostream:39,
from prog.cc:6:
/opt/wandbox/gcc-head/include/c++/11.0.0/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++/11.0.0/bits/ostream.tcc:321:5: note: template argument deduction/substitution failed:
prog.cc:578:19: note: cannot convert 'it.std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::operator*()' (type 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}) to type 'const char*'
578 | os << *it << ' ';
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/iostream:39,
from prog.cc:6:
/opt/wandbox/gcc-head/include/c++/11.0.0/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++/11.0.0/ostream:606:5: note: template argument deduction/substitution failed:
prog.cc:578:19: note: cannot convert 'it.std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::operator*()' (type 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}) to type 'const char*'
578 | os << *it << ' ';
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/iostream:39,
from prog.cc:6:
/opt/wandbox/gcc-head/include/c++/11.0.0/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++/11.0.0/ostream:619:5: note: template argument deduction/substitution failed:
prog.cc:578:19: note: cannot convert 'it.std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::operator*()' (type 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}) to type 'const signed char*'
578 | os << *it << ' ';
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/iostream:39,
from prog.cc:6:
/opt/wandbox/gcc-head/include/c++/11.0.0/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++/11.0.0/ostream:624:5: note: template argument deduction/substitution failed:
prog.cc:578:19: note: cannot convert 'it.std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::operator*()' (type 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}) to type 'const unsigned char*'
578 | os << *it << ' ';
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/iostream:39,
from prog.cc:6:
/opt/wandbox/gcc-head/include/c++/11.0.0/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++/11.0.0/ostream:634:5: note: template argument deduction/substitution failed:
prog.cc:578:19: note: cannot convert 'it.std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::operator*()' (type 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}) to type 'const wchar_t*'
578 | os << *it << ' ';
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/iostream:39,
from prog.cc:6:
/opt/wandbox/gcc-head/include/c++/11.0.0/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++/11.0.0/ostream:640:5: note: template argument deduction/substitution failed:
prog.cc:578:19: note: cannot convert 'it.std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::operator*()' (type 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}) to type 'const char8_t*'
578 | os << *it << ' ';
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/iostream:39,
from prog.cc:6:
/opt/wandbox/gcc-head/include/c++/11.0.0/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++/11.0.0/ostream:645:5: note: template argument deduction/substitution failed:
prog.cc:578:19: note: cannot convert 'it.std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::operator*()' (type 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}) to type 'const char16_t*'
578 | os << *it << ' ';
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/iostream:39,
from prog.cc:6:
/opt/wandbox/gcc-head/include/c++/11.0.0/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++/11.0.0/ostream:649:5: note: template argument deduction/substitution failed:
prog.cc:578:19: note: cannot convert 'it.std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::operator*()' (type 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}) to type 'const char32_t*'
578 | os << *it << ' ';
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/iostream:39,
from prog.cc:6:
/opt/wandbox/gcc-head/include/c++/11.0.0/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++/11.0.0/ostream:655:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'wchar_t' and 'char'
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/iostream:39,
from prog.cc:6:
/opt/wandbox/gcc-head/include/c++/11.0.0/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++/11.0.0/ostream:660:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'wchar_t' and 'char'
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/iostream:39,
from prog.cc:6:
/opt/wandbox/gcc-head/include/c++/11.0.0/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++/11.0.0/ostream:664:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'wchar_t' and 'char'
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/iostream:39,
from prog.cc:6:
/opt/wandbox/gcc-head/include/c++/11.0.0/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++/11.0.0/ostream:773:5: note: template argument deduction/substitution failed:
/opt/wandbox/gcc-head/include/c++/11.0.0/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 = std::basic_ostream<char>&; _Tp = void]':
prog.cc:578:16: required from 'std::ostream& operator<<(std::ostream&, const BTree<int, 2>&)'
prog.cc:604:18: required from here
/opt/wandbox/gcc-head/include/c++/11.0.0/ostream:773:5: error: forming reference to void
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/memory:83,
from prog.cc:8:
prog.cc: In instantiation of 'std::ostream& operator<<(std::ostream&, const BTree<int, 2>&)':
prog.cc:604:18: required from here
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/unique_ptr.h:983:5: note: candidate: 'template<class _CharT, class _Traits, class _Tp, class _Dp> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::unique_ptr<_Up, _Ep>&) requires requires{std::operator<<::__os << std::operator<<::__p->get();}'
983 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/unique_ptr.h:983:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'const std::unique_ptr<_Up, _Ep>' and 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/memory:84,
from prog.cc:8:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/shared_ptr.h:69:5: note: candidate: 'template<class _Ch, class _Tr, class _Tp, __gnu_cxx::_Lock_policy _Lp> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::__shared_ptr<_Tp, _Lp>&)'
69 | operator<<(std::basic_ostream<_Ch, _Tr>& __os,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/shared_ptr.h:69:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'const std::__shared_ptr<_Tp, _Lp>' and 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/random:49,
from prog.cc:10:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.h:1300:5: note: candidate: 'template<class _RandomNumberEngine, long unsigned int __w, class _UIntType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::independent_bits_engine<_RandomNumberEngine, __w, _UIntType>&)'
1300 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.h:1300:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'const std::independent_bits_engine<_RandomNumberEngine, __w, _UIntType>' and 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/random:51,
from prog.cc:10:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:867:5: note: candidate: 'template<class _IntType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::uniform_int_distribution<_IntType>&)'
867 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:867:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'const std::uniform_int_distribution<_IntType>' and 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/random:51,
from prog.cc:10:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:925:5: note: candidate: 'template<class _RealType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::uniform_real_distribution<_IntType>&)'
925 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:925:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'const std::uniform_real_distribution<_IntType>' and 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/random:51,
from prog.cc:10:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:2110:5: note: candidate: 'template<class _RealType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::cauchy_distribution<_RealType>&)'
2110 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:2110:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'const std::cauchy_distribution<_RealType>' and 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/random:51,
from prog.cc:10:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:986:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::bernoulli_distribution&)'
986 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:986:5: note: template argument deduction/substitution failed:
prog.cc:578:19: note: cannot convert 'it.std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::operator*()' (type 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}) to type 'const std::bernoulli_distribution&'
578 | os << *it << ' ';
| ^~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/random:51,
from prog.cc:10:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:1067:5: note: candidate: 'template<class _IntType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::geometric_distribution<_IntType>&)'
1067 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:1067:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'const std::geometric_distribution<_IntType>' and 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/random:51,
from prog.cc:10:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:1719:5: note: candidate: 'template<class _RealType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::exponential_distribution<_RealType>&)'
1719 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:1719:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'const std::exponential_distribution<_RealType>' and 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/random:51,
from prog.cc:10:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:2504:5: note: candidate: 'template<class _RealType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::weibull_distribution<_RealType>&)'
2504 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:2504:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'const std::weibull_distribution<_RealType>' and 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/random:51,
from prog.cc:10:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:2578:5: note: candidate: 'template<class _RealType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::extreme_value_distribution<_RealType>&)'
2578 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:2578:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'const std::extreme_value_distribution<_RealType>' and 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/random:51,
from prog.cc:10:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:154:5: note: candidate: 'template<class _UIntType, _UIntType __a, _UIntType __c, _UIntType __m, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::linear_congruential_engine<_UIntType, __a, __c, __m>&)'
154 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:154:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'const std::linear_congruential_engine<_UIntType, __a, __c, __m>' and 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/random:51,
from prog.cc:10:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:474:5: note: candidate: 'template<class _UIntType1, long unsigned int __w1, long unsigned int __n1, long unsigned int __m1, long unsigned int __r1, _UIntType1 __a1, long unsigned int __u1, _UIntType1 __d1, long unsigned int __s1, _UIntType1 __b1, long unsigned int __t1, _UIntType1 __c1, long unsigned int __l1, _UIntType1 __f1, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>&)'
474 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:474:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'const std::mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>' and 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/random:51,
from prog.cc:10:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:628:5: note: candidate: 'template<class _UIntType, long unsigned int __w, long unsigned int __s, long unsigned int __r, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::subtract_with_carry_engine<_UIntType, __w, __s, __r>&)'
628 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:628:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'const std::subtract_with_carry_engine<_UIntType, __w, __s, __r>' and 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/random:51,
from prog.cc:10:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:696:5: note: candidate: 'template<class _RandomNumberEngine, long unsigned int __p, long unsigned int __r, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::discard_block_engine<_RandomNumberEngine, __p, __r>&)'
696 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:696:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'const std::discard_block_engine<_RandomNumberEngine, __p, __r>' and 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/random:51,
from prog.cc:10:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:823:5: note: candidate: 'template<class _RandomNumberEngine, long unsigned int __k, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::shuffle_order_engine<_RandomNumberEngine, __k>&)'
823 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:823:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'const std::shuffle_order_engine<_RandomNumberEngine, __k>' and 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/random:51,
from prog.cc:10:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:1181:5: note: candidate: 'template<class _IntType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::negative_binomial_distribution<_IntType>&)'
1181 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:1181:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'const std::negative_binomial_distribution<_IntType>' and 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/random:51,
from prog.cc:10:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:1391:5: note: candidate: 'template<class _IntType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::poisson_distribution<_IntType>&)'
1391 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:1391:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'const std::poisson_distribution<_IntType>' and 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/random:51,
from prog.cc:10:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:1657:5: note: candidate: 'template<class _IntType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::binomial_distribution<_IntType>&)'
1657 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:1657:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'const std::binomial_distribution<_IntType>' and 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/random:51,
from prog.cc:10:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:1885:5: note: candidate: 'template<class _RealType1, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::normal_distribution<_RealType>&)'
1885 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:1885:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'const std::normal_distribution<_RealType>' and 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/random:51,
from prog.cc:10:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:1952:5: note: candidate: 'template<class _RealType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::lognormal_distribution<_RealType>&)'
1952 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:1952:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'const std::lognormal_distribution<_RealType>' and 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/random:51,
from prog.cc:10:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:2024:5: note: candidate: 'template<class _RealType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::chi_squared_distribution<_RealType>&)'
2024 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:2024:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'const std::chi_squared_distribution<_RealType>' and 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/random:51,
from prog.cc:10:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:2185:5: note: candidate: 'template<class _RealType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::fisher_f_distribution<_RealType>&)'
2185 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:2185:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'const std::fisher_f_distribution<_RealType>' and 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/random:51,
from prog.cc:10:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:2259:5: note: candidate: 'template<class _RealType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::student_t_distribution<_RealType>&)'
2259 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:2259:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'const std::student_t_distribution<_RealType>' and 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/random:51,
from prog.cc:10:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:2428:5: note: candidate: 'template<class _RealType1, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::gamma_distribution<_RealType>&)'
2428 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:2428:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'const std::gamma_distribution<_RealType>' and 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/random:51,
from prog.cc:10:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:2713:5: note: candidate: 'template<class _IntType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::discrete_distribution<_IntType>&)'
2713 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:2713:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'const std::discrete_distribution<_IntType>' and 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/random:51,
from prog.cc:10:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:2934:5: note: candidate: 'template<class _RealType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::piecewise_constant_distribution<_RealType>&)'
2934 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:2934:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'const std::piecewise_constant_distribution<_RealType>' and 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/random:51,
from prog.cc:10:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:3139:5: note: candidate: 'template<class _RealType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::piecewise_linear_distribution<_RealType>&)'
3139 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/random.tcc:3139:5: note: template argument deduction/substitution failed:
prog.cc:578:16: note: mismatched types 'const std::piecewise_linear_distribution<_RealType>' and 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'}
578 | os << *it << ' ';
| ~~~^~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/bits/stl_algobase.h:67,
from /opt/wandbox/gcc-head/include/c++/11.0.0/algorithm:61,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/stl_iterator.h: In instantiation of 'constexpr std::reverse_iterator<_Iterator>::reference std::reverse_iterator<_Iterator>::operator*() const [with _Iterator = BTree<int, 2>::BTreeConstIterator; std::reverse_iterator<_Iterator>::reference = void]':
prog.cc:578:19: required from 'std::ostream& operator<<(std::ostream&, const BTree<int, 2>&)'
prog.cc:604:18: required from here
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/stl_iterator.h:239:19: error: return-statement with a value, in function returning 'std::reverse_iterator<BTree<int, 2>::BTreeConstIterator>::reference' {aka 'void'} [-fpermissive]
239 | return *--__tmp;
| ^~~~~
prog.cc:332:21: warning: inline function 'bool operator!=(const BTree<int, 2>::BTreeConstIterator&, const BTree<int, 2>::BTreeConstIterator&)' used but never defined
332 | friend bool operator!=(const BTreeConstIterator& x, const BTreeConstIterator& y) {
| ^~~~~~~~
Exit Code:
1