Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 8 years ago

Language

Compiler

Options

Author

anonymous

almost 8 years ago

$
prog.cc: In function 'int main()':
prog.cc:35:30: error: no matching function for call to 'std::multimap<int, int>::insert(std::pair<const int, int*>&)'
     myMultimap.insert(myPairB);
                              ^
In file included from /opt/wandbox/gcc-head/include/c++/9.0.0/map:62,
                 from prog.cc:4:
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:537:7: note: candidate: 'std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(const value_type&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::value_type = std::pair<const int, int>]'
       insert(const value_type& __x)
       ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:537:7: note:   no known conversion for argument 1 from 'std::pair<const int, int*>' to 'const value_type&' {aka 'const std::pair<const int, int>&'}
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:544:7: note: candidate: 'std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(std::multimap<_Key, _Tp, _Compare, _Alloc>::value_type&&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::value_type = std::pair<const int, int>]'
       insert(value_type&& __x)
       ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:544:7: note:   no known conversion for argument 1 from 'std::pair<const int, int*>' to 'std::multimap<int, int>::value_type&&' {aka 'std::pair<const int, int>&&'}
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:551:2: note: candidate: 'template<class _Pair, class> std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(_Pair&&) [with _Pair = _Pair; <template-parameter-2-2> = <template-parameter-1-2>; _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >]'
  insert(_Pair&& __x)
  ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:551:2: note:   template argument deduction/substitution failed:
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:547:32: error: no type named 'type' in 'struct std::enable_if<false, void>'
       template<typename _Pair, typename = typename
                                ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:579:7: note: candidate: 'std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(std::multimap<_Key, _Tp, _Compare, _Alloc>::const_iterator, const value_type&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::value_type = std::pair<const int, int>]'
       insert(const_iterator __position, const value_type& __x)
       ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:579:7: note:   candidate expects 2 arguments, 1 provided
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:589:7: note: candidate: 'std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(std::multimap<_Key, _Tp, _Compare, _Alloc>::const_iterator, std::multimap<_Key, _Tp, _Compare, _Alloc>::value_type&&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::value_type = std::pair<const int, int>]'
       insert(const_iterator __position, value_type&& __x)
       ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:589:7: note:   candidate expects 2 arguments, 1 provided
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:596:2: note: candidate: 'template<class _Pair, class> std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(std::multimap<_Key, _Tp, _Compare, _Alloc>::const_iterator, _Pair&&) [with _Pair = _Pair; <template-parameter-2-2> = <template-parameter-1-2>; _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >]'
  insert(const_iterator __position, _Pair&& __x)
  ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:596:2: note:   template argument deduction/substitution failed:
prog.cc:35:30: note:   candidate expects 2 arguments, 1 provided
     myMultimap.insert(myPairB);
                              ^
In file included from /opt/wandbox/gcc-head/include/c++/9.0.0/map:62,
                 from prog.cc:4:
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:613:2: note: candidate: 'template<class _InputIterator> void std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >]'
  insert(_InputIterator __first, _InputIterator __last)
  ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:613:2: note:   template argument deduction/substitution failed:
prog.cc:35:30: note:   candidate expects 2 arguments, 1 provided
     myMultimap.insert(myPairB);
                              ^
In file included from /opt/wandbox/gcc-head/include/c++/9.0.0/map:62,
                 from prog.cc:4:
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:625:7: note: candidate: 'void std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(std::initializer_list<std::pair<const _Key, _Tp> >) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >]'
       insert(initializer_list<value_type> __l)
       ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:625:7: note:   no known conversion for argument 1 from 'std::pair<const int, int*>' to 'std::initializer_list<std::pair<const int, int> >'
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:645:7: note: candidate: 'std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(std::multimap<_Key, _Tp, _Compare, _Alloc>::node_type&&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::node_type = std::_Node_handle<int, std::pair<const int, int>, std::allocator<std::_Rb_tree_node<std::pair<const int, int> > > >]'
       insert(node_type&& __nh)
       ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:645:7: note:   no known conversion for argument 1 from 'std::pair<const int, int*>' to 'std::multimap<int, int>::node_type&&' {aka 'std::_Node_handle<int, std::pair<const int, int>, std::allocator<std::_Rb_tree_node<std::pair<const int, int> > > >&&'}
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:650:7: note: candidate: 'std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(std::multimap<_Key, _Tp, _Compare, _Alloc>::const_iterator, std::multimap<_Key, _Tp, _Compare, _Alloc>::node_type&&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::node_type = std::_Node_handle<int, std::pair<const int, int>, std::allocator<std::_Rb_tree_node<std::pair<const int, int> > > >]'
       insert(const_iterator __hint, node_type&& __nh)
       ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:650:7: note:   candidate expects 2 arguments, 1 provided
prog.cc:36:30: error: no matching function for call to 'std::multimap<int, int>::insert(std::pair<const int, int*>&)'
     myMultimap.insert(myPairC);
                              ^
In file included from /opt/wandbox/gcc-head/include/c++/9.0.0/map:62,
                 from prog.cc:4:
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:537:7: note: candidate: 'std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(const value_type&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::value_type = std::pair<const int, int>]'
       insert(const value_type& __x)
       ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:537:7: note:   no known conversion for argument 1 from 'std::pair<const int, int*>' to 'const value_type&' {aka 'const std::pair<const int, int>&'}
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:544:7: note: candidate: 'std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(std::multimap<_Key, _Tp, _Compare, _Alloc>::value_type&&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::value_type = std::pair<const int, int>]'
       insert(value_type&& __x)
       ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:544:7: note:   no known conversion for argument 1 from 'std::pair<const int, int*>' to 'std::multimap<int, int>::value_type&&' {aka 'std::pair<const int, int>&&'}
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:551:2: note: candidate: 'template<class _Pair, class> std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(_Pair&&) [with _Pair = _Pair; <template-parameter-2-2> = <template-parameter-1-2>; _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >]'
  insert(_Pair&& __x)
  ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:551:2: note:   template argument deduction/substitution failed:
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:547:32: error: no type named 'type' in 'struct std::enable_if<false, void>'
       template<typename _Pair, typename = typename
                                ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:579:7: note: candidate: 'std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(std::multimap<_Key, _Tp, _Compare, _Alloc>::const_iterator, const value_type&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::value_type = std::pair<const int, int>]'
       insert(const_iterator __position, const value_type& __x)
       ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:579:7: note:   candidate expects 2 arguments, 1 provided
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:589:7: note: candidate: 'std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(std::multimap<_Key, _Tp, _Compare, _Alloc>::const_iterator, std::multimap<_Key, _Tp, _Compare, _Alloc>::value_type&&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::value_type = std::pair<const int, int>]'
       insert(const_iterator __position, value_type&& __x)
       ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:589:7: note:   candidate expects 2 arguments, 1 provided
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:596:2: note: candidate: 'template<class _Pair, class> std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(std::multimap<_Key, _Tp, _Compare, _Alloc>::const_iterator, _Pair&&) [with _Pair = _Pair; <template-parameter-2-2> = <template-parameter-1-2>; _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >]'
  insert(const_iterator __position, _Pair&& __x)
  ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:596:2: note:   template argument deduction/substitution failed:
prog.cc:36:30: note:   candidate expects 2 arguments, 1 provided
     myMultimap.insert(myPairC);
                              ^
In file included from /opt/wandbox/gcc-head/include/c++/9.0.0/map:62,
                 from prog.cc:4:
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:613:2: note: candidate: 'template<class _InputIterator> void std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >]'
  insert(_InputIterator __first, _InputIterator __last)
  ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:613:2: note:   template argument deduction/substitution failed:
prog.cc:36:30: note:   candidate expects 2 arguments, 1 provided
     myMultimap.insert(myPairC);
                              ^
In file included from /opt/wandbox/gcc-head/include/c++/9.0.0/map:62,
                 from prog.cc:4:
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:625:7: note: candidate: 'void std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(std::initializer_list<std::pair<const _Key, _Tp> >) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >]'
       insert(initializer_list<value_type> __l)
       ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:625:7: note:   no known conversion for argument 1 from 'std::pair<const int, int*>' to 'std::initializer_list<std::pair<const int, int> >'
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:645:7: note: candidate: 'std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(std::multimap<_Key, _Tp, _Compare, _Alloc>::node_type&&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::node_type = std::_Node_handle<int, std::pair<const int, int>, std::allocator<std::_Rb_tree_node<std::pair<const int, int> > > >]'
       insert(node_type&& __nh)
       ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:645:7: note:   no known conversion for argument 1 from 'std::pair<const int, int*>' to 'std::multimap<int, int>::node_type&&' {aka 'std::_Node_handle<int, std::pair<const int, int>, std::allocator<std::_Rb_tree_node<std::pair<const int, int> > > >&&'}
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:650:7: note: candidate: 'std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(std::multimap<_Key, _Tp, _Compare, _Alloc>::const_iterator, std::multimap<_Key, _Tp, _Compare, _Alloc>::node_type&&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::node_type = std::_Node_handle<int, std::pair<const int, int>, std::allocator<std::_Rb_tree_node<std::pair<const int, int> > > >]'
       insert(const_iterator __hint, node_type&& __nh)
       ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:650:7: note:   candidate expects 2 arguments, 1 provided
prog.cc:37:30: error: no matching function for call to 'std::multimap<int, int>::insert(std::pair<const int, int*>&)'
     myMultimap.insert(myPairD);
                              ^
In file included from /opt/wandbox/gcc-head/include/c++/9.0.0/map:62,
                 from prog.cc:4:
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:537:7: note: candidate: 'std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(const value_type&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::value_type = std::pair<const int, int>]'
       insert(const value_type& __x)
       ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:537:7: note:   no known conversion for argument 1 from 'std::pair<const int, int*>' to 'const value_type&' {aka 'const std::pair<const int, int>&'}
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:544:7: note: candidate: 'std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(std::multimap<_Key, _Tp, _Compare, _Alloc>::value_type&&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::value_type = std::pair<const int, int>]'
       insert(value_type&& __x)
       ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:544:7: note:   no known conversion for argument 1 from 'std::pair<const int, int*>' to 'std::multimap<int, int>::value_type&&' {aka 'std::pair<const int, int>&&'}
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:551:2: note: candidate: 'template<class _Pair, class> std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(_Pair&&) [with _Pair = _Pair; <template-parameter-2-2> = <template-parameter-1-2>; _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >]'
  insert(_Pair&& __x)
  ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:551:2: note:   template argument deduction/substitution failed:
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:547:32: error: no type named 'type' in 'struct std::enable_if<false, void>'
       template<typename _Pair, typename = typename
                                ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:579:7: note: candidate: 'std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(std::multimap<_Key, _Tp, _Compare, _Alloc>::const_iterator, const value_type&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::value_type = std::pair<const int, int>]'
       insert(const_iterator __position, const value_type& __x)
       ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:579:7: note:   candidate expects 2 arguments, 1 provided
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:589:7: note: candidate: 'std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(std::multimap<_Key, _Tp, _Compare, _Alloc>::const_iterator, std::multimap<_Key, _Tp, _Compare, _Alloc>::value_type&&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::value_type = std::pair<const int, int>]'
       insert(const_iterator __position, value_type&& __x)
       ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:589:7: note:   candidate expects 2 arguments, 1 provided
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:596:2: note: candidate: 'template<class _Pair, class> std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(std::multimap<_Key, _Tp, _Compare, _Alloc>::const_iterator, _Pair&&) [with _Pair = _Pair; <template-parameter-2-2> = <template-parameter-1-2>; _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >]'
  insert(const_iterator __position, _Pair&& __x)
  ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:596:2: note:   template argument deduction/substitution failed:
prog.cc:37:30: note:   candidate expects 2 arguments, 1 provided
     myMultimap.insert(myPairD);
                              ^
In file included from /opt/wandbox/gcc-head/include/c++/9.0.0/map:62,
                 from prog.cc:4:
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:613:2: note: candidate: 'template<class _InputIterator> void std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >]'
  insert(_InputIterator __first, _InputIterator __last)
  ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:613:2: note:   template argument deduction/substitution failed:
prog.cc:37:30: note:   candidate expects 2 arguments, 1 provided
     myMultimap.insert(myPairD);
                              ^
In file included from /opt/wandbox/gcc-head/include/c++/9.0.0/map:62,
                 from prog.cc:4:
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:625:7: note: candidate: 'void std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(std::initializer_list<std::pair<const _Key, _Tp> >) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >]'
       insert(initializer_list<value_type> __l)
       ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:625:7: note:   no known conversion for argument 1 from 'std::pair<const int, int*>' to 'std::initializer_list<std::pair<const int, int> >'
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:645:7: note: candidate: 'std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(std::multimap<_Key, _Tp, _Compare, _Alloc>::node_type&&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::node_type = std::_Node_handle<int, std::pair<const int, int>, std::allocator<std::_Rb_tree_node<std::pair<const int, int> > > >]'
       insert(node_type&& __nh)
       ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:645:7: note:   no known conversion for argument 1 from 'std::pair<const int, int*>' to 'std::multimap<int, int>::node_type&&' {aka 'std::_Node_handle<int, std::pair<const int, int>, std::allocator<std::_Rb_tree_node<std::pair<const int, int> > > >&&'}
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:650:7: note: candidate: 'std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(std::multimap<_Key, _Tp, _Compare, _Alloc>::const_iterator, std::multimap<_Key, _Tp, _Compare, _Alloc>::node_type&&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::node_type = std::_Node_handle<int, std::pair<const int, int>, std::allocator<std::_Rb_tree_node<std::pair<const int, int> > > >]'
       insert(const_iterator __hint, node_type&& __nh)
       ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:650:7: note:   candidate expects 2 arguments, 1 provided
prog.cc:38:30: error: no matching function for call to 'std::multimap<int, int>::insert(std::pair<const int, int*>&)'
     myMultimap.insert(myPairE);
                              ^
In file included from /opt/wandbox/gcc-head/include/c++/9.0.0/map:62,
                 from prog.cc:4:
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:537:7: note: candidate: 'std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(const value_type&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::value_type = std::pair<const int, int>]'
       insert(const value_type& __x)
       ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:537:7: note:   no known conversion for argument 1 from 'std::pair<const int, int*>' to 'const value_type&' {aka 'const std::pair<const int, int>&'}
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:544:7: note: candidate: 'std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(std::multimap<_Key, _Tp, _Compare, _Alloc>::value_type&&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::value_type = std::pair<const int, int>]'
       insert(value_type&& __x)
       ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:544:7: note:   no known conversion for argument 1 from 'std::pair<const int, int*>' to 'std::multimap<int, int>::value_type&&' {aka 'std::pair<const int, int>&&'}
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:551:2: note: candidate: 'template<class _Pair, class> std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(_Pair&&) [with _Pair = _Pair; <template-parameter-2-2> = <template-parameter-1-2>; _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >]'
  insert(_Pair&& __x)
  ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:551:2: note:   template argument deduction/substitution failed:
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:547:32: error: no type named 'type' in 'struct std::enable_if<false, void>'
       template<typename _Pair, typename = typename
                                ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:579:7: note: candidate: 'std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(std::multimap<_Key, _Tp, _Compare, _Alloc>::const_iterator, const value_type&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::value_type = std::pair<const int, int>]'
       insert(const_iterator __position, const value_type& __x)
       ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:579:7: note:   candidate expects 2 arguments, 1 provided
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:589:7: note: candidate: 'std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(std::multimap<_Key, _Tp, _Compare, _Alloc>::const_iterator, std::multimap<_Key, _Tp, _Compare, _Alloc>::value_type&&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::value_type = std::pair<const int, int>]'
       insert(const_iterator __position, value_type&& __x)
       ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:589:7: note:   candidate expects 2 arguments, 1 provided
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:596:2: note: candidate: 'template<class _Pair, class> std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(std::multimap<_Key, _Tp, _Compare, _Alloc>::const_iterator, _Pair&&) [with _Pair = _Pair; <template-parameter-2-2> = <template-parameter-1-2>; _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >]'
  insert(const_iterator __position, _Pair&& __x)
  ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:596:2: note:   template argument deduction/substitution failed:
prog.cc:38:30: note:   candidate expects 2 arguments, 1 provided
     myMultimap.insert(myPairE);
                              ^
In file included from /opt/wandbox/gcc-head/include/c++/9.0.0/map:62,
                 from prog.cc:4:
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:613:2: note: candidate: 'template<class _InputIterator> void std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >]'
  insert(_InputIterator __first, _InputIterator __last)
  ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:613:2: note:   template argument deduction/substitution failed:
prog.cc:38:30: note:   candidate expects 2 arguments, 1 provided
     myMultimap.insert(myPairE);
                              ^
In file included from /opt/wandbox/gcc-head/include/c++/9.0.0/map:62,
                 from prog.cc:4:
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:625:7: note: candidate: 'void std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(std::initializer_list<std::pair<const _Key, _Tp> >) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >]'
       insert(initializer_list<value_type> __l)
       ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:625:7: note:   no known conversion for argument 1 from 'std::pair<const int, int*>' to 'std::initializer_list<std::pair<const int, int> >'
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:645:7: note: candidate: 'std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(std::multimap<_Key, _Tp, _Compare, _Alloc>::node_type&&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::node_type = std::_Node_handle<int, std::pair<const int, int>, std::allocator<std::_Rb_tree_node<std::pair<const int, int> > > >]'
       insert(node_type&& __nh)
       ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:645:7: note:   no known conversion for argument 1 from 'std::pair<const int, int*>' to 'std::multimap<int, int>::node_type&&' {aka 'std::_Node_handle<int, std::pair<const int, int>, std::allocator<std::_Rb_tree_node<std::pair<const int, int> > > >&&'}
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:650:7: note: candidate: 'std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator std::multimap<_Key, _Tp, _Compare, _Alloc>::insert(std::multimap<_Key, _Tp, _Compare, _Alloc>::const_iterator, std::multimap<_Key, _Tp, _Compare, _Alloc>::node_type&&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<const int, int> >; std::multimap<_Key, _Tp, _Compare, _Alloc>::node_type = std::_Node_handle<int, std::pair<const int, int>, std::allocator<std::_Rb_tree_node<std::pair<const int, int> > > >]'
       insert(const_iterator __hint, node_type&& __nh)
       ^~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_multimap.h:650:7: note:   candidate expects 2 arguments, 1 provided
In file included from /opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_algobase.h:71,
                 from /opt/wandbox/gcc-head/include/c++/9.0.0/bits/char_traits.h:39,
                 from /opt/wandbox/gcc-head/include/c++/9.0.0/ios:40,
                 from /opt/wandbox/gcc-head/include/c++/9.0.0/ostream:38,
                 from /opt/wandbox/gcc-head/include/c++/9.0.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Iter_pred<_Predicate>::operator()(_Iterator) [with _Iterator = std::_Rb_tree_iterator<std::pair<const int, int> >; _Predicate = EqualFunctor<int>]':
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_algo.h:104:42:   required from '_InputIterator std::__find_if(_InputIterator, _InputIterator, _Predicate, std::input_iterator_tag) [with _InputIterator = std::_Rb_tree_iterator<std::pair<const int, int> >; _Predicate = __gnu_cxx::__ops::_Iter_pred<EqualFunctor<int> >]'
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_algo.h:161:23:   required from '_Iterator std::__find_if(_Iterator, _Iterator, _Predicate) [with _Iterator = std::_Rb_tree_iterator<std::pair<const int, int> >; _Predicate = __gnu_cxx::__ops::_Iter_pred<EqualFunctor<int> >]'
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_algo.h:3930:28:   required from '_IIter std::find_if(_IIter, _IIter, _Predicate) [with _IIter = std::_Rb_tree_iterator<std::pair<const int, int> >; _Predicate = EqualFunctor<int>]'
prog.cc:46:56:   required from here
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/predefined_ops.h:283:11: error: no match for call to '(EqualFunctor<int>) (std::pair<const int, int>&)'
  { return bool(_M_pred(*__it)); }
           ^~~~~~~~~~~~~~~~~~~~
prog.cc:12:10: note: candidate: 'bool EqualFunctor<T>::operator()(std::pair<const int, T*>) [with T = int]'
     bool operator() (std::pair<const int, T*> myPair)
          ^~~~~~~~
prog.cc:12:10: note:   no known conversion for argument 1 from 'pair<[...],int>' to 'pair<[...],int*>'
Exit Code:
1