Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 7 years ago

Language

Compiler

Options

Author

anonymous

over 7 years ago

$
In file included from /opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/hashtable.h:35:0,
                 from /opt/wandbox/gcc-7.2.0/include/c++/7.2.0/unordered_set:47,
                 from prog.cc:1:
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/hashtable_policy.h: In instantiation of 'struct std::__detail::__is_noexcept_hash<int, std::equal_to<int> >':
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/type_traits:143:12:   required from 'struct std::__and_<std::__is_fast_hash<std::equal_to<int> >, std::__detail::__is_noexcept_hash<int, std::equal_to<int> > >'
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/type_traits:154:38:   required from 'struct std::__not_<std::__and_<std::__is_fast_hash<std::equal_to<int> >, std::__detail::__is_noexcept_hash<int, std::equal_to<int> > > >'
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/unordered_set.h:832:64:   required from 'class std::unordered_multiset<int, std::equal_to<int>, std::hash<int> >'
prog.cc:10:53:   required from here
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/hashtable_policy.h:87:34: error: no match for call to '(const std::equal_to<int>) (const int&)'
  noexcept(declval<const _Hash&>()(declval<const _Key&>()))>
           ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /opt/wandbox/gcc-7.2.0/include/c++/7.2.0/string:48:0,
                 from /opt/wandbox/gcc-7.2.0/include/c++/7.2.0/stdexcept:39,
                 from /opt/wandbox/gcc-7.2.0/include/c++/7.2.0/array:39,
                 from /opt/wandbox/gcc-7.2.0/include/c++/7.2.0/tuple:39,
                 from /opt/wandbox/gcc-7.2.0/include/c++/7.2.0/unordered_set:41,
                 from prog.cc:1:
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/stl_function.h:355:7: note: candidate: constexpr bool std::equal_to<_Tp>::operator()(const _Tp&, const _Tp&) const [with _Tp = int]
       operator()(const _Tp& __x, const _Tp& __y) const
       ^~~~~~~~
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/stl_function.h:355:7: note:   candidate expects 2 arguments, 1 provided
In file included from /opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/move.h:54:0,
                 from /opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/stl_pair.h:59,
                 from /opt/wandbox/gcc-7.2.0/include/c++/7.2.0/utility:70,
                 from /opt/wandbox/gcc-7.2.0/include/c++/7.2.0/unordered_set:38,
                 from prog.cc:1:
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/type_traits: In instantiation of 'struct std::__not_<std::__and_<std::__is_fast_hash<std::equal_to<int> >, std::__detail::__is_noexcept_hash<int, std::equal_to<int> > > >':
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/unordered_set.h:832:64:   required from 'class std::unordered_multiset<int, std::equal_to<int>, std::hash<int> >'
prog.cc:10:53:   required from here
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/type_traits:154:38: error: 'value' is not a member of 'std::__and_<std::__is_fast_hash<std::equal_to<int> >, std::__detail::__is_noexcept_hash<int, std::equal_to<int> > >'
     : public integral_constant<bool, !_Pp::value>
                                      ^~~~
In file included from /opt/wandbox/gcc-7.2.0/include/c++/7.2.0/unordered_set:48:0,
                 from prog.cc:1:
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/unordered_set.h: In instantiation of 'class std::unordered_multiset<int, std::equal_to<int>, std::hash<int> >':
prog.cc:10:53:   required from here
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/unordered_set.h:832:64: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::equal_to<int> >, std::__detail::__is_noexcept_hash<int, std::equal_to<int> > > >'
       typedef __umset_hashtable<_Value, _Hash, _Pred, _Alloc>  _Hashtable;
                                                                ^~~~~~~~~~
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/unordered_set.h:839:45: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::equal_to<int> >, std::__detail::__is_noexcept_hash<int, std::equal_to<int> > > >'
       typedef typename _Hashtable::key_type key_type;
                                             ^~~~~~~~
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/unordered_set.h:840:47: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::equal_to<int> >, std::__detail::__is_noexcept_hash<int, std::equal_to<int> > > >'
       typedef typename _Hashtable::value_type value_type;
                                               ^~~~~~~~~~
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/unordered_set.h:841:43: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::equal_to<int> >, std::__detail::__is_noexcept_hash<int, std::equal_to<int> > > >'
       typedef typename _Hashtable::hasher hasher;
                                           ^~~~~~
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/unordered_set.h:842:46: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::equal_to<int> >, std::__detail::__is_noexcept_hash<int, std::equal_to<int> > > >'
       typedef typename _Hashtable::key_equal key_equal;
                                              ^~~~~~~~~
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/unordered_set.h:843:51: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::equal_to<int> >, std::__detail::__is_noexcept_hash<int, std::equal_to<int> > > >'
       typedef typename _Hashtable::allocator_type allocator_type;
                                                   ^~~~~~~~~~~~~~
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/unordered_set.h:848:45: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::equal_to<int> >, std::__detail::__is_noexcept_hash<int, std::equal_to<int> > > >'
       typedef typename _Hashtable::pointer  pointer;
                                             ^~~~~~~
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/unordered_set.h:849:50: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::equal_to<int> >, std::__detail::__is_noexcept_hash<int, std::equal_to<int> > > >'
       typedef typename _Hashtable::const_pointer const_pointer;
                                                  ^~~~~~~~~~~~~
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/unordered_set.h:850:47: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::equal_to<int> >, std::__detail::__is_noexcept_hash<int, std::equal_to<int> > > >'
       typedef typename _Hashtable::reference  reference;
                                               ^~~~~~~~~
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/unordered_set.h:851:52: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::equal_to<int> >, std::__detail::__is_noexcept_hash<int, std::equal_to<int> > > >'
       typedef typename _Hashtable::const_reference const_reference;
                                                    ^~~~~~~~~~~~~~~
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/unordered_set.h:852:46: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::equal_to<int> >, std::__detail::__is_noexcept_hash<int, std::equal_to<int> > > >'
       typedef typename _Hashtable::iterator  iterator;
                                              ^~~~~~~~
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/unordered_set.h:853:51: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::equal_to<int> >, std::__detail::__is_noexcept_hash<int, std::equal_to<int> > > >'
       typedef typename _Hashtable::const_iterator const_iterator;
                                                   ^~~~~~~~~~~~~~
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/unordered_set.h:854:51: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::equal_to<int> >, std::__detail::__is_noexcept_hash<int, std::equal_to<int> > > >'
       typedef typename _Hashtable::local_iterator local_iterator;
                                                   ^~~~~~~~~~~~~~
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/unordered_set.h:855:57: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::equal_to<int> >, std::__detail::__is_noexcept_hash<int, std::equal_to<int> > > >'
       typedef typename _Hashtable::const_local_iterator const_local_iterator;
                                                         ^~~~~~~~~~~~~~~~~~~~
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/unordered_set.h:856:47: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::equal_to<int> >, std::__detail::__is_noexcept_hash<int, std::equal_to<int> > > >'
       typedef typename _Hashtable::size_type  size_type;
                                               ^~~~~~~~~
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/unordered_set.h:857:52: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::equal_to<int> >, std::__detail::__is_noexcept_hash<int, std::equal_to<int> > > >'
       typedef typename _Hashtable::difference_type difference_type;
                                                    ^~~~~~~~~~~~~~~
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/unordered_set.h:1015:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::equal_to<int> >, std::__detail::__is_noexcept_hash<int, std::equal_to<int> > > >'
       operator=(initializer_list<value_type> __l)
       ^~~~~~~~
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/unordered_set.h:1189:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::equal_to<int> >, std::__detail::__is_noexcept_hash<int, std::equal_to<int> > > >'
       insert(initializer_list<value_type> __l)
       ^~~~~~
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/unordered_set.h:1391:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::equal_to<int> >, std::__detail::__is_noexcept_hash<int, std::equal_to<int> > > >'
       equal_range(const key_type& __x)
       ^~~~~~~~~~~
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/unordered_set.h:1395:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::equal_to<int> >, std::__detail::__is_noexcept_hash<int, std::equal_to<int> > > >'
       equal_range(const key_type& __x) const
       ^~~~~~~~~~~
In file included from /opt/wandbox/gcc-7.2.0/include/c++/7.2.0/string:48:0,
                 from /opt/wandbox/gcc-7.2.0/include/c++/7.2.0/stdexcept:39,
                 from /opt/wandbox/gcc-7.2.0/include/c++/7.2.0/array:39,
                 from /opt/wandbox/gcc-7.2.0/include/c++/7.2.0/tuple:39,
                 from /opt/wandbox/gcc-7.2.0/include/c++/7.2.0/unordered_set:41,
                 from prog.cc:1:
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/stl_function.h: In instantiation of 'struct std::_Identity<const int>':
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/stl_tree.h:2091:29:   required from 'std::pair<std::_Rb_tree_iterator<_Val>, bool> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_unique(_Arg&&) [with _Arg = const int; _Key = const int; _Val = const int; _KeyOfValue = std::_Identity<const int>; _Compare = std::less<const int>; _Alloc = std::allocator<const int>]'
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/stl_set.h:510:48:   required from 'std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::value_type&&) [with _Key = const int; _Compare = std::less<const int>; _Alloc = std::allocator<const int>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator = std::_Rb_tree_const_iterator<const int>; std::set<_Key, _Compare, _Alloc>::value_type = const int]'
prog.cc:9:13:   required from here
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/stl_function.h:877:7: error: 'const _Tp& std::_Identity<_Tp>::operator()(const _Tp&) const [with _Tp = const int]' cannot be overloaded
       operator()(const _Tp& __x) const
       ^~~~~~~~
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/stl_function.h:873:7: error: with '_Tp& std::_Identity<_Tp>::operator()(_Tp&) const [with _Tp = const int]'
       operator()(_Tp& __x) const
       ^~~~~~~~
Exit Code:
1