daily pastebin goal
55%
SHARE
TWEET

Untitled

a guest Jan 14th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. jordan@jordan-Ubuntu-vbx:~/src/dsa1/project1$ make
  2. g++ -o program1 main.cpp
  3. In file included from /usr/include/c++/4.4/backward/hash_map:60,
  4.                  from main.cpp:4:
  5. /usr/include/c++/4.4/backward/backward_warning.h:28: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
  6. main.cpp: In function ‘void process_command(__gnu_cxx::hash_map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, List<T>, __gnu_cxx::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::equal_to<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<List<T> > >)’:
  7. main.cpp:23: error: expected ‘;’ before ‘iter’
  8. main.cpp:24: error: ‘iter’ was not declared in this scope
  9. main.cpp: In function ‘void process_command(__gnu_cxx::hash_map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, List<T>, __gnu_cxx::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::equal_to<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<List<T> > >) [with T = int]’:
  10. main.cpp:71:   instantiated from here
  11. main.cpp:23: error: dependent-name ‘__gnu_cxx::hash_map::iterator’ is parsed as a non-type, but instantiation yields a type
  12. main.cpp:23: note: say ‘typename __gnu_cxx::hash_map::iterator’ if a type is meant
  13. main.cpp:71:   instantiated from here
  14. main.cpp:27: error: invalid conversion from ‘List<int>*’ to ‘int’
  15. main.cpp:27: error:   initializing argument 1 of ‘List<T>::List(int) [with T = int]’
  16. main.cpp:71:   instantiated from here
  17. main.cpp:38: error: cannot convert ‘std::string’ to ‘int’ in initialization
  18. main.cpp: In function ‘void process_command(__gnu_cxx::hash_map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, List<T>, __gnu_cxx::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::equal_to<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<List<T> > >) [with T = double]’:
  19. main.cpp:74:   instantiated from here
  20. main.cpp:23: error: dependent-name ‘__gnu_cxx::hash_map::iterator’ is parsed as a non-type, but instantiation yields a type
  21. main.cpp:23: note: say ‘typename __gnu_cxx::hash_map::iterator’ if a type is meant
  22. main.cpp:74:   instantiated from here
  23. main.cpp:27: error: invalid conversion from ‘List<double>*’ to ‘int’
  24. main.cpp:27: error:   initializing argument 1 of ‘List<T>::List(int) [with T = double]’
  25. main.cpp:74:   instantiated from here
  26. main.cpp:38: error: cannot convert ‘std::string’ to ‘double’ in initialization
  27. main.cpp: In function ‘void process_command(__gnu_cxx::hash_map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, List<T>, __gnu_cxx::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::equal_to<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<List<T> > >) [with T = std::basic_string<char, std::char_traits<char>, std::allocator<char> >]’:
  28. main.cpp:77:   instantiated from here
  29. main.cpp:23: error: dependent-name ‘__gnu_cxx::hash_map::iterator’ is parsed as a non-type, but instantiation yields a type
  30. main.cpp:23: note: say ‘typename __gnu_cxx::hash_map::iterator’ if a type is meant
  31. main.cpp:77:   instantiated from here
  32. main.cpp:27: error: invalid conversion from ‘List<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >*’ to ‘int’
  33. main.cpp:27: error:   initializing argument 1 of ‘List<T>::List(int) [with T = std::basic_string<char, std::char_traits<char>, std::allocator<char> >]’
  34. In file included from main.cpp:4:
  35. /usr/include/c++/4.4/backward/hash_map: In member function ‘_Tp& __gnu_cxx::hash_map<_Key, _Tp, _HashFn, _EqualKey, _Alloc>::operator[](const typename __gnu_cxx::hashtable<std::pair<const _Key, _Tp>, _Key, _HashFn, std::_Select1st<std::pair<const _Key, _Tp> >, _EqualKey, _Alloc>::key_type&) [with _Key = std::basic_string<char, std::char_traits<char>, std::allocator<char> >, _Tp = List<int>, _HashFn = __gnu_cxx::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _EqualKey = std::equal_to<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _Alloc = std::allocator<List<int> >]’:
  36. main.cpp:27:   instantiated from ‘void process_command(__gnu_cxx::hash_map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, List<T>, __gnu_cxx::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::equal_to<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<List<T> > >) [with T = int]’
  37. main.cpp:71:   instantiated from here
  38. /usr/include/c++/4.4/backward/hash_map:217: error: no matching function for call to ‘List<int>::List()’
  39. List.cpp:84: note: candidates are: List<T>::List(int) [with T = int]
  40. List.cpp:10: note:                 List<int>::List(const List<int>&)
  41. /usr/include/c++/4.4/backward/hash_map: In member function ‘_Tp& __gnu_cxx::hash_map<_Key, _Tp, _HashFn, _EqualKey, _Alloc>::operator[](const typename __gnu_cxx::hashtable<std::pair<const _Key, _Tp>, _Key, _HashFn, std::_Select1st<std::pair<const _Key, _Tp> >, _EqualKey, _Alloc>::key_type&) [with _Key = std::basic_string<char, std::char_traits<char>, std::allocator<char> >, _Tp = List<double>, _HashFn = __gnu_cxx::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _EqualKey = std::equal_to<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _Alloc = std::allocator<List<double> >]’:
  42. main.cpp:27:   instantiated from ‘void process_command(__gnu_cxx::hash_map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, List<T>, __gnu_cxx::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::equal_to<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<List<T> > >) [with T = double]’
  43. main.cpp:74:   instantiated from here
  44. /usr/include/c++/4.4/backward/hash_map:217: error: no matching function for call to ‘List<double>::List()’
  45. List.cpp:84: note: candidates are: List<T>::List(int) [with T = double]
  46. List.cpp:10: note:                 List<double>::List(const List<double>&)
  47. /usr/include/c++/4.4/backward/hash_map: In member function ‘_Tp& __gnu_cxx::hash_map<_Key, _Tp, _HashFn, _EqualKey, _Alloc>::operator[](const typename __gnu_cxx::hashtable<std::pair<const _Key, _Tp>, _Key, _HashFn, std::_Select1st<std::pair<const _Key, _Tp> >, _EqualKey, _Alloc>::key_type&) [with _Key = std::basic_string<char, std::char_traits<char>, std::allocator<char> >, _Tp = List<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _HashFn = __gnu_cxx::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _EqualKey = std::equal_to<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _Alloc = std::allocator<List<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >]’:
  48. main.cpp:27:   instantiated from ‘void process_command(__gnu_cxx::hash_map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, List<T>, __gnu_cxx::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::equal_to<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<List<T> > >) [with T = std::basic_string<char, std::char_traits<char>, std::allocator<char> >]’
  49. main.cpp:77:   instantiated from here
  50. /usr/include/c++/4.4/backward/hash_map:217: error: no matching function for call to ‘List<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::List()’
  51. List.cpp:84: note: candidates are: List<T>::List(int) [with T = std::basic_string<char, std::char_traits<char>, std::allocator<char> >]
  52. List.cpp:10: note:                 List<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::List(const List<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >&)
  53. In file included from /usr/include/c++/4.4/backward/hash_map:62,
  54.                  from main.cpp:4:
  55. /usr/include/c++/4.4/backward/hashtable.h: In member function ‘size_t __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::_M_bkt_num_key(const _Key&, size_t) const [with _Val = std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, List<int> >, _Key = std::basic_string<char, std::char_traits<char>, std::allocator<char> >, _HashFcn = __gnu_cxx::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _ExtractKey = std::_Select1st<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, List<int> > >, _EqualKey = std::equal_to<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _Alloc = std::allocator<List<int> >]’:
  56. /usr/include/c++/4.4/backward/hashtable.h:582:   instantiated from ‘size_t __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::_M_bkt_num_key(const _Key&) const [with _Val = std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, List<int> >, _Key = std::basic_string<char, std::char_traits<char>, std::allocator<char> >, _HashFcn = __gnu_cxx::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _ExtractKey = std::_Select1st<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, List<int> > >, _EqualKey = std::equal_to<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _Alloc = std::allocator<List<int> >]’
  57. /usr/include/c++/4.4/backward/hashtable.h:505:   instantiated from ‘__gnu_cxx::_Hashtable_iterator<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc> __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::find(const _Key&) [with _Val = std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, List<int> >, _Key = std::basic_string<char, std::char_traits<char>, std::allocator<char> >, _HashFcn = __gnu_cxx::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _ExtractKey = std::_Select1st<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, List<int> > >, _EqualKey = std::equal_to<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _Alloc = std::allocator<List<int> >]’
  58. /usr/include/c++/4.4/backward/hash_map:209:   instantiated from ‘typename __gnu_cxx::hashtable<std::pair<const _Key, _Tp>, _Key, _HashFn, std::_Select1st<std::pair<const _Key, _Tp> >, _EqualKey, _Alloc>::iterator __gnu_cxx::hash_map<_Key, _Tp, _HashFn, _EqualKey, _Alloc>::find(const typename __gnu_cxx::hashtable<std::pair<const _Key, _Tp>, _Key, _HashFn, std::_Select1st<std::pair<const _Key, _Tp> >, _EqualKey, _Alloc>::key_type&) [with _Key = std::basic_string<char, std::char_traits<char>, std::allocator<char> >, _Tp = List<int>, _HashFn = __gnu_cxx::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _EqualKey = std::equal_to<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _Alloc = std::allocator<List<int> >]’
  59. main.cpp:24:   instantiated from ‘void process_command(__gnu_cxx::hash_map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, List<T>, __gnu_cxx::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::equal_to<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<List<T> > >) [with T = int]’
  60. main.cpp:71:   instantiated from here
  61. /usr/include/c++/4.4/backward/hashtable.h:590: error: no match for call to ‘(const __gnu_cxx::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >) (const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)’
  62. /usr/include/c++/4.4/backward/hashtable.h: In member function ‘size_t __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::_M_bkt_num_key(const _Key&, size_t) const [with _Val = std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, List<double> >, _Key = std::basic_string<char, std::char_traits<char>, std::allocator<char> >, _HashFcn = __gnu_cxx::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _ExtractKey = std::_Select1st<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, List<double> > >, _EqualKey = std::equal_to<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _Alloc = std::allocator<List<double> >]’:
  63. /usr/include/c++/4.4/backward/hashtable.h:582:   instantiated from ‘size_t __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::_M_bkt_num_key(const _Key&) const [with _Val = std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, List<double> >, _Key = std::basic_string<char, std::char_traits<char>, std::allocator<char> >, _HashFcn = __gnu_cxx::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _ExtractKey = std::_Select1st<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, List<double> > >, _EqualKey = std::equal_to<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _Alloc = std::allocator<List<double> >]’
  64. /usr/include/c++/4.4/backward/hashtable.h:505:   instantiated from ‘__gnu_cxx::_Hashtable_iterator<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc> __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::find(const _Key&) [with _Val = std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, List<double> >, _Key = std::basic_string<char, std::char_traits<char>, std::allocator<char> >, _HashFcn = __gnu_cxx::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _ExtractKey = std::_Select1st<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, List<double> > >, _EqualKey = std::equal_to<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _Alloc = std::allocator<List<double> >]’
  65. /usr/include/c++/4.4/backward/hash_map:209:   instantiated from ‘typename __gnu_cxx::hashtable<std::pair<const _Key, _Tp>, _Key, _HashFn, std::_Select1st<std::pair<const _Key, _Tp> >, _EqualKey, _Alloc>::iterator __gnu_cxx::hash_map<_Key, _Tp, _HashFn, _EqualKey, _Alloc>::find(const typename __gnu_cxx::hashtable<std::pair<const _Key, _Tp>, _Key, _HashFn, std::_Select1st<std::pair<const _Key, _Tp> >, _EqualKey, _Alloc>::key_type&) [with _Key = std::basic_string<char, std::char_traits<char>, std::allocator<char> >, _Tp = List<double>, _HashFn = __gnu_cxx::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _EqualKey = std::equal_to<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _Alloc = std::allocator<List<double> >]’
  66. main.cpp:24:   instantiated from ‘void process_command(__gnu_cxx::hash_map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, List<T>, __gnu_cxx::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::equal_to<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<List<T> > >) [with T = double]’
  67. main.cpp:74:   instantiated from here
  68. /usr/include/c++/4.4/backward/hashtable.h:590: error: no match for call to ‘(const __gnu_cxx::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >) (const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)’
  69. /usr/include/c++/4.4/backward/hashtable.h: In member function ‘size_t __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::_M_bkt_num_key(const _Key&, size_t) const [with _Val = std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, List<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, _Key = std::basic_string<char, std::char_traits<char>, std::allocator<char> >, _HashFcn = __gnu_cxx::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _ExtractKey = std::_Select1st<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, List<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, _EqualKey = std::equal_to<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _Alloc = std::allocator<List<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >]’:
  70. /usr/include/c++/4.4/backward/hashtable.h:582:   instantiated from ‘size_t __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::_M_bkt_num_key(const _Key&) const [with _Val = std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, List<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, _Key = std::basic_string<char, std::char_traits<char>, std::allocator<char> >, _HashFcn = __gnu_cxx::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _ExtractKey = std::_Select1st<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, List<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, _EqualKey = std::equal_to<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _Alloc = std::allocator<List<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >]’
  71. /usr/include/c++/4.4/backward/hashtable.h:505:   instantiated from ‘__gnu_cxx::_Hashtable_iterator<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc> __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::find(const _Key&) [with _Val = std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, List<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, _Key = std::basic_string<char, std::char_traits<char>, std::allocator<char> >, _HashFcn = __gnu_cxx::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _ExtractKey = std::_Select1st<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, List<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, _EqualKey = std::equal_to<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _Alloc = std::allocator<List<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >]’
  72. /usr/include/c++/4.4/backward/hash_map:209:   instantiated from ‘typename __gnu_cxx::hashtable<std::pair<const _Key, _Tp>, _Key, _HashFn, std::_Select1st<std::pair<const _Key, _Tp> >, _EqualKey, _Alloc>::iterator __gnu_cxx::hash_map<_Key, _Tp, _HashFn, _EqualKey, _Alloc>::find(const typename __gnu_cxx::hashtable<std::pair<const _Key, _Tp>, _Key, _HashFn, std::_Select1st<std::pair<const _Key, _Tp> >, _EqualKey, _Alloc>::key_type&) [with _Key = std::basic_string<char, std::char_traits<char>, std::allocator<char> >, _Tp = List<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _HashFn = __gnu_cxx::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _EqualKey = std::equal_to<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _Alloc = std::allocator<List<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >]’
  73. main.cpp:24:   instantiated from ‘void process_command(__gnu_cxx::hash_map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, List<T>, __gnu_cxx::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::equal_to<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<List<T> > >) [with T = std::basic_string<char, std::char_traits<char>, std::allocator<char> >]’
  74. main.cpp:77:   instantiated from here
  75. /usr/include/c++/4.4/backward/hashtable.h:590: error: no match for call to ‘(const __gnu_cxx::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >) (const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)’
  76. make: *** [default] Error 1
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top