Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.93 KB | None | 0 0
  1. stdout:
  2. /bin/sh ./doit.sh
  3. Makefile:4: recipe for target 'build' failed
  4.  
  5.  
  6. stderr:
  7. cp: '/temp/compiling/poly.h' and 'poly.h' are the same file
  8. In file included from /usr/include/c++/8/map:60,
  9. from poly.h:4,
  10. from test_31415926.cpp:1:
  11. /usr/include/c++/8/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_unique_(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, _Arg&&, _NodeGen&) [with _Arg = int&; _NodeGen = std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int> >, std::less<int>, std::allocator<std::pair<const int, int> > >::_Alloc_node; _Key = int; _Val = std::pair<const int, int>; _KeyOfValue = std::_Select1st<std::pair<const int, int> >; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, int> >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<const int, int> >]’:
  12. /usr/include/c++/8/bits/stl_tree.h:2468:4: required from ‘void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_unique(_II, _II) [with _InputIterator = std::_List_iterator<int>; _Key = int; _Val = std::pair<const int, int>; _KeyOfValue = std::_Select1st<std::pair<const int, int> >; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >]’
  13. /usr/include/c++/8/bits/stl_map.h:273:4: required from ‘std::map<_Key, _Tp, _Compare, _Alloc>::map(_InputIterator, _InputIterator) [with _InputIterator = std::_List_iterator<int>; _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >]’
  14. poly.h:40:49: required from ‘Polynomial<T>::Polynomial(It, It) [with It = std::_List_iterator<int>; T = int]’
  15. test_31415926.cpp:208:63: required from here
  16. /usr/include/c++/8/bits/stl_tree.h:2217:59: error: no match for call to ‘(std::_Select1st<std::pair<const int, int> >) (int&)’
  17. = _M_get_insert_hint_unique_pos(__position, _KeyOfValue()(__v));
  18. ~~~~~~~~~~~~~^~~~~
  19. In file included from /usr/include/c++/8/functional:49,
  20. from poly.h:2,
  21. from test_31415926.cpp:1:
  22. /usr/include/c++/8/bits/stl_function.h:1127:7: note: candidate: ‘typename _Pair::first_type& std::_Select1st<_Pair>::operator()(_Pair&) const [with _Pair = std::pair<const int, int>; typename _Pair::first_type = const int]’
  23. operator()(_Pair& __x) const
  24. ^~~~~~~~
  25. /usr/include/c++/8/bits/stl_function.h:1127:7: note: no known conversion for argument 1 from ‘int’ to ‘std::pair<const int, int>&’
  26. /usr/include/c++/8/bits/stl_function.h:1131:7: note: candidate: ‘const typename _Pair::first_type& std::_Select1st<_Pair>::operator()(const _Pair&) const [with _Pair = std::pair<const int, int>; typename _Pair::first_type = const int]’
  27. operator()(const _Pair& __x) const
  28. ^~~~~~~~
  29. /usr/include/c++/8/bits/stl_function.h:1131:7: note: no known conversion for argument 1 from ‘int’ to ‘const std::pair<const int, int>&’
  30. /usr/include/c++/8/bits/stl_function.h:1137:9: note: candidate: ‘template<class _Pair2> typename _Pair2::first_type& std::_Select1st<_Pair>::operator()(_Pair2&) const [with _Pair2 = _Pair2; _Pair = std::pair<const int, int>]’
  31. operator()(_Pair2& __x) const
  32. ^~~~~~~~
  33. /usr/include/c++/8/bits/stl_function.h:1137:9: note: template argument deduction/substitution failed:
  34. /usr/include/c++/8/bits/stl_function.h: In substitution of ‘template<class _Pair2> typename _Pair2::first_type& std::_Select1st<std::pair<const int, int> >::operator()<_Pair2>(_Pair2&) const [with _Pair2 = int]’:
  35. /usr/include/c++/8/bits/stl_tree.h:2217:59: required from ‘std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_unique_(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, _Arg&&, _NodeGen&) [with _Arg = int&; _NodeGen = std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int> >, std::less<int>, std::allocator<std::pair<const int, int> > >::_Alloc_node; _Key = int; _Val = std::pair<const int, int>; _KeyOfValue = std::_Select1st<std::pair<const int, int> >; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, int> >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<const int, int> >]’
  36. /usr/include/c++/8/bits/stl_tree.h:2468:4: required from ‘void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_unique(_II, _II) [with _InputIterator = std::_List_iterator<int>; _Key = int; _Val = std::pair<const int, int>; _KeyOfValue = std::_Select1st<std::pair<const int, int> >; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >]’
  37. /usr/include/c++/8/bits/stl_map.h:273:4: required from ‘std::map<_Key, _Tp, _Compare, _Alloc>::map(_InputIterator, _InputIterator) [with _InputIterator = std::_List_iterator<int>; _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >]’
  38. poly.h:40:49: required from ‘Polynomial<T>::Polynomial(It, It) [with It = std::_List_iterator<int>; T = int]’
  39. test_31415926.cpp:208:63: required from here
  40. /usr/include/c++/8/bits/stl_function.h:1137:9: error: ‘int’ is not a class, struct, or union type
  41. /usr/include/c++/8/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_unique_(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, _Arg&&, _NodeGen&) [with _Arg = int&; _NodeGen = std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int> >, std::less<int>, std::allocator<std::pair<const int, int> > >::_Alloc_node; _Key = int; _Val = std::pair<const int, int>; _KeyOfValue = std::_Select1st<std::pair<const int, int> >; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, int> >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<const int, int> >]’:
  42. /usr/include/c++/8/bits/stl_tree.h:2468:4: required from ‘void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_unique(_II, _II) [with _InputIterator = std::_List_iterator<int>; _Key = int; _Val = std::pair<const int, int>; _KeyOfValue = std::_Select1st<std::pair<const int, int> >; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >]’
  43. /usr/include/c++/8/bits/stl_map.h:273:4: required from ‘std::map<_Key, _Tp, _Compare, _Alloc>::map(_InputIterator, _InputIterator) [with _InputIterator = std::_List_iterator<int>; _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >]’
  44. poly.h:40:49: required from ‘Polynomial<T>::Polynomial(It, It) [with It = std::_List_iterator<int>; T = int]’
  45. test_31415926.cpp:208:63: required from here
  46. /usr/include/c++/8/bits/stl_function.h:1142:9: note: candidate: ‘template<class _Pair2> const typename _Pair2::first_type& std::_Select1st<_Pair>::operator()(const _Pair2&) const [with _Pair2 = _Pair2; _Pair = std::pair<const int, int>]’
  47. operator()(const _Pair2& __x) const
  48. ^~~~~~~~
  49. /usr/include/c++/8/bits/stl_function.h:1142:9: note: template argument deduction/substitution failed:
  50. /usr/include/c++/8/bits/stl_function.h: In substitution of ‘template<class _Pair2> const typename _Pair2::first_type& std::_Select1st<std::pair<const int, int> >::operator()<_Pair2>(const _Pair2&) const [with _Pair2 = int]’:
  51. /usr/include/c++/8/bits/stl_tree.h:2217:59: required from ‘std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_unique_(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, _Arg&&, _NodeGen&) [with _Arg = int&; _NodeGen = std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int> >, std::less<int>, std::allocator<std::pair<const int, int> > >::_Alloc_node; _Key = int; _Val = std::pair<const int, int>; _KeyOfValue = std::_Select1st<std::pair<const int, int> >; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, int> >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<const int, int> >]’
  52. /usr/include/c++/8/bits/stl_tree.h:2468:4: required from ‘void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_unique(_II, _II) [with _InputIterator = std::_List_iterator<int>; _Key = int; _Val = std::pair<const int, int>; _KeyOfValue = std::_Select1st<std::pair<const int, int> >; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >]’
  53. /usr/include/c++/8/bits/stl_map.h:273:4: required from ‘std::map<_Key, _Tp, _Compare, _Alloc>::map(_InputIterator, _InputIterator) [with _InputIterator = std::_List_iterator<int>; _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >]’
  54. poly.h:40:49: required from ‘Polynomial<T>::Polynomial(It, It) [with It = std::_List_iterator<int>; T = int]’
  55. test_31415926.cpp:208:63: required from here
  56. /usr/include/c++/8/bits/stl_function.h:1142:9: error: ‘int’ is not a class, struct, or union type
  57. make: *** [build] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement