Author
anonymous
about 8 years ago
Language
Compiler
Options
Author
anonymous
about 8 years ago
$
In file included from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/hashtable.h:35:0,
from /opt/wandbox/gcc-head/include/c++/8.0.0/unordered_set:47,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/hashtable_policy.h: In instantiation of 'struct std::__detail::__is_noexcept_hash<Counter<int, 3>::Node, std::hash<int> >':
/opt/wandbox/gcc-head/include/c++/8.0.0/type_traits:143:12: required from 'struct std::__and_<std::__is_fast_hash<std::hash<int> >, std::__detail::__is_noexcept_hash<Counter<int, 3>::Node, std::hash<int> > >'
/opt/wandbox/gcc-head/include/c++/8.0.0/type_traits:154:38: required from 'struct std::__not_<std::__and_<std::__is_fast_hash<std::hash<int> >, std::__detail::__is_noexcept_hash<Counter<int, 3>::Node, std::hash<int> > > >'
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/unordered_set.h:99:63: required from 'class std::unordered_set<Counter<int, 3>::Node, std::hash<int>, std::equal_to<Counter<int, 3>::Node>, std::allocator<Counter<int, 3>::Node> >'
prog.cc:34:42: required from 'class Counter<int, 3>'
prog.cc:136:21: required from here
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/hashtable_policy.h:83:34: error: no match for call to '(const std::hash<int>) (const Counter<int, 3>::Node&)'
noexcept(declval<const _Hash&>()(declval<const _Key&>()))>
~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/basic_string.h:6585:0,
from /opt/wandbox/gcc-head/include/c++/8.0.0/string:52,
from /opt/wandbox/gcc-head/include/c++/8.0.0/stdexcept:39,
from /opt/wandbox/gcc-head/include/c++/8.0.0/array:39,
from /opt/wandbox/gcc-head/include/c++/8.0.0/tuple:39,
from /opt/wandbox/gcc-head/include/c++/8.0.0/unordered_set:41,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/functional_hash.h:148:3: note: candidate: 'std::size_t std::hash<int>::operator()(int) const'
_Cxx_hashtable_define_trivial_hash(int)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/functional_hash.h:148:3: note: no known conversion for argument 1 from 'const Counter<int, 3>::Node' to 'int'
In file included from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/move.h:55:0,
from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/stl_pair.h:59,
from /opt/wandbox/gcc-head/include/c++/8.0.0/utility:70,
from /opt/wandbox/gcc-head/include/c++/8.0.0/unordered_set:38,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/8.0.0/type_traits: In instantiation of 'struct std::__not_<std::__and_<std::__is_fast_hash<std::hash<int> >, std::__detail::__is_noexcept_hash<Counter<int, 3>::Node, std::hash<int> > > >':
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/unordered_set.h:99:63: required from 'class std::unordered_set<Counter<int, 3>::Node, std::hash<int>, std::equal_to<Counter<int, 3>::Node>, std::allocator<Counter<int, 3>::Node> >'
prog.cc:34:42: required from 'class Counter<int, 3>'
prog.cc:136:21: required from here
/opt/wandbox/gcc-head/include/c++/8.0.0/type_traits:154:38: error: 'value' is not a member of 'std::__and_<std::__is_fast_hash<std::hash<int> >, std::__detail::__is_noexcept_hash<Counter<int, 3>::Node, std::hash<int> > >'
: public integral_constant<bool, !_Pp::value>
^~~~
In file included from /opt/wandbox/gcc-head/include/c++/8.0.0/unordered_set:48:0,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/unordered_set.h: In instantiation of 'class std::unordered_set<Counter<int, 3>::Node, std::hash<int>, std::equal_to<Counter<int, 3>::Node>, std::allocator<Counter<int, 3>::Node> >':
prog.cc:34:42: required from 'class Counter<int, 3>'
prog.cc:136:21: required from here
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/unordered_set.h:99:63: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<int> >, std::__detail::__is_noexcept_hash<Counter<int, 3>::Node, std::hash<int> > > >'
typedef __uset_hashtable<_Value, _Hash, _Pred, _Alloc> _Hashtable;
^~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/unordered_set.h:106:45: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<int> >, std::__detail::__is_noexcept_hash<Counter<int, 3>::Node, std::hash<int> > > >'
typedef typename _Hashtable::key_type key_type;
^~~~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/unordered_set.h:107:47: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<int> >, std::__detail::__is_noexcept_hash<Counter<int, 3>::Node, std::hash<int> > > >'
typedef typename _Hashtable::value_type value_type;
^~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/unordered_set.h:108:43: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<int> >, std::__detail::__is_noexcept_hash<Counter<int, 3>::Node, std::hash<int> > > >'
typedef typename _Hashtable::hasher hasher;
^~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/unordered_set.h:109:46: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<int> >, std::__detail::__is_noexcept_hash<Counter<int, 3>::Node, std::hash<int> > > >'
typedef typename _Hashtable::key_equal key_equal;
^~~~~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/unordered_set.h:110:51: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<int> >, std::__detail::__is_noexcept_hash<Counter<int, 3>::Node, std::hash<int> > > >'
typedef typename _Hashtable::allocator_type allocator_type;
^~~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/unordered_set.h:115:45: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<int> >, std::__detail::__is_noexcept_hash<Counter<int, 3>::Node, std::hash<int> > > >'
typedef typename _Hashtable::pointer pointer;
^~~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/unordered_set.h:116:50: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<int> >, std::__detail::__is_noexcept_hash<Counter<int, 3>::Node, std::hash<int> > > >'
typedef typename _Hashtable::const_pointer const_pointer;
^~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/unordered_set.h:117:47: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<int> >, std::__detail::__is_noexcept_hash<Counter<int, 3>::Node, std::hash<int> > > >'
typedef typename _Hashtable::reference reference;
^~~~~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/unordered_set.h:118:52: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<int> >, std::__detail::__is_noexcept_hash<Counter<int, 3>::Node, std::hash<int> > > >'
typedef typename _Hashtable::const_reference const_reference;
^~~~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/unordered_set.h:119:46: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<int> >, std::__detail::__is_noexcept_hash<Counter<int, 3>::Node, std::hash<int> > > >'
typedef typename _Hashtable::iterator iterator;
^~~~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/unordered_set.h:120:51: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<int> >, std::__detail::__is_noexcept_hash<Counter<int, 3>::Node, std::hash<int> > > >'
typedef typename _Hashtable::const_iterator const_iterator;
^~~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/unordered_set.h:121:51: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<int> >, std::__detail::__is_noexcept_hash<Counter<int, 3>::Node, std::hash<int> > > >'
typedef typename _Hashtable::local_iterator local_iterator;
^~~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/unordered_set.h:122:57: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<int> >, std::__detail::__is_noexcept_hash<Counter<int, 3>::Node, std::hash<int> > > >'
typedef typename _Hashtable::const_local_iterator const_local_iterator;
^~~~~~~~~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/unordered_set.h:123:47: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<int> >, std::__detail::__is_noexcept_hash<Counter<int, 3>::Node, std::hash<int> > > >'
typedef typename _Hashtable::size_type size_type;
^~~~~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/unordered_set.h:124:52: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<int> >, std::__detail::__is_noexcept_hash<Counter<int, 3>::Node, std::hash<int> > > >'
typedef typename _Hashtable::difference_type difference_type;
^~~~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/unordered_set.h:283:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<int> >, std::__detail::__is_noexcept_hash<Counter<int, 3>::Node, std::hash<int> > > >'
operator=(initializer_list<value_type> __l)
^~~~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/unordered_set.h:376:2: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<int> >, std::__detail::__is_noexcept_hash<Counter<int, 3>::Node, std::hash<int> > > >'
emplace(_Args&&... __args)
^~~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/unordered_set.h:420:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<int> >, std::__detail::__is_noexcept_hash<Counter<int, 3>::Node, std::hash<int> > > >'
insert(const value_type& __x)
^~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/unordered_set.h:424:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<int> >, std::__detail::__is_noexcept_hash<Counter<int, 3>::Node, std::hash<int> > > >'
insert(value_type&& __x)
^~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/unordered_set.h:479:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<int> >, std::__detail::__is_noexcept_hash<Counter<int, 3>::Node, std::hash<int> > > >'
insert(initializer_list<value_type> __l)
^~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/unordered_set.h:680:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<int> >, std::__detail::__is_noexcept_hash<Counter<int, 3>::Node, std::hash<int> > > >'
equal_range(const key_type& __x)
^~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/unordered_set.h:684:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<int> >, std::__detail::__is_noexcept_hash<Counter<int, 3>::Node, std::hash<int> > > >'
equal_range(const key_type& __x) const
^~~~~~~~~~~
prog.cc: In instantiation of 'Counter<T, MAX, hasher_t>& Counter<T, MAX, hasher_t>::add(const T&) [with T = int; long unsigned int MAX = 3; hasher_t = std::hash<int>]':
prog.cc:47:49: required from 'Counter<T, MAX, hasher_t>& Counter<T, MAX, hasher_t>::operator<<(const T&) [with T = int; long unsigned int MAX = 3; hasher_t = std::hash<int>]'
prog.cc:42:7: required from 'Counter<T, MAX, hasher_t>::Counter(const std::initializer_list<_Tp>&) [with T = int; long unsigned int MAX = 3; hasher_t = std::hash<int>]'
prog.cc:138:3: required from here
prog.cc:50:21: error: 'class std::unordered_set<Counter<int, 3>::Node, std::hash<int>, std::equal_to<Counter<int, 3>::Node>, std::allocator<Counter<int, 3>::Node> >' has no member named 'find'
auto iter = set.find( Node( data ) );
~~~~^~~~
prog.cc:53:21: error: 'class std::unordered_set<Counter<int, 3>::Node, std::hash<int>, std::equal_to<Counter<int, 3>::Node>, std::allocator<Counter<int, 3>::Node> >' has no member named 'end'
if( iter != set.end( ) ) {
~~~~^~~
prog.cc:68:15: error: 'class std::unordered_set<Counter<int, 3>::Node, std::hash<int>, std::equal_to<Counter<int, 3>::Node>, std::allocator<Counter<int, 3>::Node> >' has no member named 'size'
if( set.size( ) == MAX ) {
~~~~^~~~
prog.cc:77:48: error: 'class std::unordered_set<Counter<int, 3>::Node, std::hash<int>, std::equal_to<Counter<int, 3>::Node>, std::allocator<Counter<int, 3>::Node> >' has no member named 'emplace'
node = const_cast< Node * >( &( *( set.emplace( data ).first ) ) );
~~~~^~~~~~~
Exit Code:
1