Language
Compiler
Options
$
In file included from /opt/wandbox/gcc-6.3.0/include/c++/6.3.0/set:60:0,
from prog.cc:1:
/opt/wandbox/gcc-6.3.0/include/c++/6.3.0/bits/stl_tree.h: In instantiation of 'std::pair<std::_Rb_tree_node_base*, std::_Rb_tree_node_base*> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_get_insert_unique_pos(const key_type&) [with _Key = int; _Val = int; _KeyOfValue = std::_Identity<int>; _Compare = std::allocator<int>; _Alloc = std::allocator<int>; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::key_type = int]':
/opt/wandbox/gcc-6.3.0/include/c++/6.3.0/bits/stl_tree.h:1889:28: required from 'std::pair<std::_Rb_tree_iterator<_Val>, bool> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_unique(_Arg&&) [with _Arg = int; _Key = int; _Val = int; _KeyOfValue = std::_Identity<int>; _Compare = std::allocator<int>; _Alloc = std::allocator<int>]'
/opt/wandbox/gcc-6.3.0/include/c++/6.3.0/bits/stl_set.h:492:40: 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 = int; _Compare = std::allocator<int>; _Alloc = std::allocator<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<int>; std::set<_Key, _Compare, _Alloc>::value_type = int]'
prog.cc:10:24: required from here
/opt/wandbox/gcc-6.3.0/include/c++/6.3.0/bits/stl_tree.h:1836:11: error: no match for call to '(std::allocator<int>) (const key_type&, const int&)'
__comp = _M_impl._M_key_compare(__k, _S_key(__x));
/opt/wandbox/gcc-6.3.0/include/c++/6.3.0/bits/stl_tree.h:1847:7: error: no match for call to '(std::allocator<int>) (const int&, const key_type&)'
if (_M_impl._M_key_compare(_S_key(__j._M_node), __k))
^~
/opt/wandbox/gcc-6.3.0/include/c++/6.3.0/bits/stl_tree.h: In instantiation of 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Base_ptr, std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Base_ptr, _Arg&&, _NodeGen&) [with _Arg = int; _NodeGen = std::_Rb_tree<int, int, std::_Identity<int>, std::allocator<int>, std::allocator<int> >::_Alloc_node; _Key = int; _Val = int; _KeyOfValue = std::_Identity<int>; _Compare = std::allocator<int>; _Alloc = std::allocator<int>; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<int>; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Base_ptr = std::_Rb_tree_node_base*]':
/opt/wandbox/gcc-6.3.0/include/c++/6.3.0/bits/stl_tree.h:1894:11: required from 'std::pair<std::_Rb_tree_iterator<_Val>, bool> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_unique(_Arg&&) [with _Arg = int; _Key = int; _Val = int; _KeyOfValue = std::_Identity<int>; _Compare = std::allocator<int>; _Alloc = std::allocator<int>]'
/opt/wandbox/gcc-6.3.0/include/c++/6.3.0/bits/stl_set.h:492:40: 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 = int; _Compare = std::allocator<int>; _Alloc = std::allocator<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<int>; std::set<_Key, _Compare, _Alloc>::value_type = int]'
prog.cc:10:24: required from here
/opt/wandbox/gcc-6.3.0/include/c++/6.3.0/bits/stl_tree.h:1532:10: error: no match for call to '(std::allocator<int>) (int&, const int&)'
bool __insert_left = (__x != 0 || __p == _M_end()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|| _M_impl._M_key_compare(_KeyOfValue()(__v),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_S_key(__p)));
~~~~~~~~~~~~~
Exit Code:
1