Advertisement
Guest User

Untitled

a guest
Dec 7th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.95 KB | None | 0 0
  1. g++ -Isrc/util src/solutions/03.cpp -o compile/03
  2. In file included from /usr/include/c++/7/bits/hashtable.h:35:0,
  3. from /usr/include/c++/7/unordered_set:47,
  4. from src/solutions/03.cpp:8:
  5. /usr/include/c++/7/bits/hashtable_policy.h: In instantiation of ‘struct std::__detail::__is_noexcept_hash<AOCUtil::Geometry::Point, std::hash<AOCUtil::Geometry::Point> >’:
  6. /usr/include/c++/7/type_traits:143:12: required from ‘struct std::__and_<std::__is_fast_hash<std::hash<AOCUtil::Geometry::Point> >, std::__detail::__is_noexcept_hash<AOCUtil::Geometry::Point, std::hash<AOCUtil::Geometry::Point> > >’
  7. /usr/include/c++/7/type_traits:154:31: required from ‘struct std::__not_<std::__and_<std::__is_fast_hash<std::hash<AOCUtil::Geometry::Point> >, std::__detail::__is_noexcept_hash<AOCUtil::Geometry::Point, std::hash<AOCUtil::Geometry::Point> > > >’
  8. /usr/include/c++/7/bits/unordered_set.h:98:63: required from ‘class std::unordered_set<AOCUtil::Geometry::Point>’
  9. src/util/Geometry.cpp:49:30: required from here
  10. /usr/include/c++/7/bits/hashtable_policy.h:87:34: error: no match for call to ‘(const std::hash<AOCUtil::Geometry::Point>) (const AOCUtil::Geometry::Point&)’
  11. noexcept(declval<const _Hash&>()(declval<const _Key&>()))>
  12. ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
  13. In file included from /usr/include/c++/7/bits/move.h:54:0,
  14. from /usr/include/c++/7/bits/nested_exception.h:40,
  15. from /usr/include/c++/7/exception:143,
  16. from /usr/include/c++/7/ios:39,
  17. from /usr/include/c++/7/ostream:38,
  18. from /usr/include/c++/7/iostream:39,
  19. from src/solutions/03.cpp:4:
  20. /usr/include/c++/7/type_traits: In instantiation of ‘struct std::__not_<std::__and_<std::__is_fast_hash<std::hash<AOCUtil::Geometry::Point> >, std::__detail::__is_noexcept_hash<AOCUtil::Geometry::Point, std::hash<AOCUtil::Geometry::Point> > > >’:
  21. /usr/include/c++/7/bits/unordered_set.h:98:63: required from ‘class std::unordered_set<AOCUtil::Geometry::Point>’
  22. src/util/Geometry.cpp:49:30: required from here
  23. /usr/include/c++/7/type_traits:154:31: error: ‘value’ is not a member of ‘std::__and_<std::__is_fast_hash<std::hash<AOCUtil::Geometry::Point> >, std::__detail::__is_noexcept_hash<AOCUtil::Geometry::Point, std::hash<AOCUtil::Geometry::Point> > >’
  24. : public __bool_constant<!bool(_Pp::value)>
  25. ^~~~~~~~~~~~~~~~
  26. In file included from /usr/include/c++/7/unordered_set:48:0,
  27. from src/solutions/03.cpp:8:
  28. /usr/include/c++/7/bits/unordered_set.h: In instantiation of ‘class std::unordered_set<AOCUtil::Geometry::Point>’:
  29. src/util/Geometry.cpp:49:30: required from here
  30. /usr/include/c++/7/bits/unordered_set.h:98:63: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<AOCUtil::Geometry::Point> >, std::__detail::__is_noexcept_hash<AOCUtil::Geometry::Point, std::hash<AOCUtil::Geometry::Point> > > >’
  31. typedef __uset_hashtable<_Value, _Hash, _Pred, _Alloc> _Hashtable;
  32. ^~~~~~~~~~
  33. /usr/include/c++/7/bits/unordered_set.h:105:45: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<AOCUtil::Geometry::Point> >, std::__detail::__is_noexcept_hash<AOCUtil::Geometry::Point, std::hash<AOCUtil::Geometry::Point> > > >’
  34. typedef typename _Hashtable::key_type key_type;
  35. ^~~~~~~~
  36. /usr/include/c++/7/bits/unordered_set.h:106:47: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<AOCUtil::Geometry::Point> >, std::__detail::__is_noexcept_hash<AOCUtil::Geometry::Point, std::hash<AOCUtil::Geometry::Point> > > >’
  37. typedef typename _Hashtable::value_type value_type;
  38. ^~~~~~~~~~
  39. /usr/include/c++/7/bits/unordered_set.h:107:43: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<AOCUtil::Geometry::Point> >, std::__detail::__is_noexcept_hash<AOCUtil::Geometry::Point, std::hash<AOCUtil::Geometry::Point> > > >’
  40. typedef typename _Hashtable::hasher hasher;
  41. ^~~~~~
  42. /usr/include/c++/7/bits/unordered_set.h:108:46: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<AOCUtil::Geometry::Point> >, std::__detail::__is_noexcept_hash<AOCUtil::Geometry::Point, std::hash<AOCUtil::Geometry::Point> > > >’
  43. typedef typename _Hashtable::key_equal key_equal;
  44. ^~~~~~~~~
  45. /usr/include/c++/7/bits/unordered_set.h:109:51: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<AOCUtil::Geometry::Point> >, std::__detail::__is_noexcept_hash<AOCUtil::Geometry::Point, std::hash<AOCUtil::Geometry::Point> > > >’
  46. typedef typename _Hashtable::allocator_type allocator_type;
  47. ^~~~~~~~~~~~~~
  48. /usr/include/c++/7/bits/unordered_set.h:114:45: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<AOCUtil::Geometry::Point> >, std::__detail::__is_noexcept_hash<AOCUtil::Geometry::Point, std::hash<AOCUtil::Geometry::Point> > > >’
  49. typedef typename _Hashtable::pointer pointer;
  50. ^~~~~~~
  51. /usr/include/c++/7/bits/unordered_set.h:115:50: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<AOCUtil::Geometry::Point> >, std::__detail::__is_noexcept_hash<AOCUtil::Geometry::Point, std::hash<AOCUtil::Geometry::Point> > > >’
  52. typedef typename _Hashtable::const_pointer const_pointer;
  53. ^~~~~~~~~~~~~
  54. /usr/include/c++/7/bits/unordered_set.h:116:47: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<AOCUtil::Geometry::Point> >, std::__detail::__is_noexcept_hash<AOCUtil::Geometry::Point, std::hash<AOCUtil::Geometry::Point> > > >’
  55. typedef typename _Hashtable::reference reference;
  56. ^~~~~~~~~
  57. /usr/include/c++/7/bits/unordered_set.h:117:52: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<AOCUtil::Geometry::Point> >, std::__detail::__is_noexcept_hash<AOCUtil::Geometry::Point, std::hash<AOCUtil::Geometry::Point> > > >’
  58. typedef typename _Hashtable::const_reference const_reference;
  59. ^~~~~~~~~~~~~~~
  60. /usr/include/c++/7/bits/unordered_set.h:118:46: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<AOCUtil::Geometry::Point> >, std::__detail::__is_noexcept_hash<AOCUtil::Geometry::Point, std::hash<AOCUtil::Geometry::Point> > > >’
  61. typedef typename _Hashtable::iterator iterator;
  62. ^~~~~~~~
  63. /usr/include/c++/7/bits/unordered_set.h:119:51: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<AOCUtil::Geometry::Point> >, std::__detail::__is_noexcept_hash<AOCUtil::Geometry::Point, std::hash<AOCUtil::Geometry::Point> > > >’
  64. typedef typename _Hashtable::const_iterator const_iterator;
  65. ^~~~~~~~~~~~~~
  66. /usr/include/c++/7/bits/unordered_set.h:120:51: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<AOCUtil::Geometry::Point> >, std::__detail::__is_noexcept_hash<AOCUtil::Geometry::Point, std::hash<AOCUtil::Geometry::Point> > > >’
  67. typedef typename _Hashtable::local_iterator local_iterator;
  68. ^~~~~~~~~~~~~~
  69. /usr/include/c++/7/bits/unordered_set.h:121:57: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<AOCUtil::Geometry::Point> >, std::__detail::__is_noexcept_hash<AOCUtil::Geometry::Point, std::hash<AOCUtil::Geometry::Point> > > >’
  70. typedef typename _Hashtable::const_local_iterator const_local_iterator;
  71. ^~~~~~~~~~~~~~~~~~~~
  72. /usr/include/c++/7/bits/unordered_set.h:122:47: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<AOCUtil::Geometry::Point> >, std::__detail::__is_noexcept_hash<AOCUtil::Geometry::Point, std::hash<AOCUtil::Geometry::Point> > > >’
  73. typedef typename _Hashtable::size_type size_type;
  74. ^~~~~~~~~
  75. /usr/include/c++/7/bits/unordered_set.h:123:52: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<AOCUtil::Geometry::Point> >, std::__detail::__is_noexcept_hash<AOCUtil::Geometry::Point, std::hash<AOCUtil::Geometry::Point> > > >’
  76. typedef typename _Hashtable::difference_type difference_type;
  77. ^~~~~~~~~~~~~~~
  78. /usr/include/c++/7/bits/unordered_set.h:282:7: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<AOCUtil::Geometry::Point> >, std::__detail::__is_noexcept_hash<AOCUtil::Geometry::Point, std::hash<AOCUtil::Geometry::Point> > > >’
  79. operator=(initializer_list<value_type> __l)
  80. ^~~~~~~~
  81. /usr/include/c++/7/bits/unordered_set.h:375:2: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<AOCUtil::Geometry::Point> >, std::__detail::__is_noexcept_hash<AOCUtil::Geometry::Point, std::hash<AOCUtil::Geometry::Point> > > >’
  82. emplace(_Args&&... __args)
  83. ^~~~~~~
  84. /usr/include/c++/7/bits/unordered_set.h:419:7: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<AOCUtil::Geometry::Point> >, std::__detail::__is_noexcept_hash<AOCUtil::Geometry::Point, std::hash<AOCUtil::Geometry::Point> > > >’
  85. insert(const value_type& __x)
  86. ^~~~~~
  87. /usr/include/c++/7/bits/unordered_set.h:423:7: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<AOCUtil::Geometry::Point> >, std::__detail::__is_noexcept_hash<AOCUtil::Geometry::Point, std::hash<AOCUtil::Geometry::Point> > > >’
  88. insert(value_type&& __x)
  89. ^~~~~~
  90. /usr/include/c++/7/bits/unordered_set.h:478:7: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<AOCUtil::Geometry::Point> >, std::__detail::__is_noexcept_hash<AOCUtil::Geometry::Point, std::hash<AOCUtil::Geometry::Point> > > >’
  91. insert(initializer_list<value_type> __l)
  92. ^~~~~~
  93. /usr/include/c++/7/bits/unordered_set.h:679:7: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<AOCUtil::Geometry::Point> >, std::__detail::__is_noexcept_hash<AOCUtil::Geometry::Point, std::hash<AOCUtil::Geometry::Point> > > >’
  94. equal_range(const key_type& __x)
  95. ^~~~~~~~~~~
  96. /usr/include/c++/7/bits/unordered_set.h:683:7: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<AOCUtil::Geometry::Point> >, std::__detail::__is_noexcept_hash<AOCUtil::Geometry::Point, std::hash<AOCUtil::Geometry::Point> > > >’
  97. equal_range(const key_type& __x) const
  98. ^~~~~~~~~~~
  99. In file included from src/solutions/03.cpp:12:0:
  100. src/util/Geometry.cpp: In member function ‘void AOCUtil::Geometry::Line::GetAllPoints(std::unordered_set<AOCUtil::Geometry::Point>&)’:
  101. src/util/Geometry.cpp:49:42: error: no matching function for call to ‘std::unordered_set<AOCUtil::Geometry::Point>::insert(AOCUtil::Geometry::Point&)’
  102. io_points.insert(curr);
  103. ^
  104. In file included from /usr/include/c++/7/unordered_set:48:0,
  105. from src/solutions/03.cpp:8:
  106. /usr/include/c++/7/bits/unordered_set.h:467:2: note: candidate: template<class _InputIterator> void std::unordered_set<_Value, _Hash, _Pred, _Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; _Value = AOCUtil::Geometry::Point; _Hash = std::hash<AOCUtil::Geometry::Point>; _Pred = std::equal_to<AOCUtil::Geometry::Point>; _Alloc = std::allocator<AOCUtil::Geometry::Point>]
  107. insert(_InputIterator __first, _InputIterator __last)
  108. ^~~~~~
  109. /usr/include/c++/7/bits/unordered_set.h:467:2: note: template argument deduction/substitution failed:
  110. In file included from src/solutions/03.cpp:12:0:
  111. src/util/Geometry.cpp:49:42: note: candidate expects 2 arguments, 1 provided
  112. io_points.insert(curr);
  113. ^
  114. src/util/Geometry.cpp: In member function ‘void AOCUtil::Geometry::Wire::GetAllPoints(std::unordered_set<AOCUtil::Geometry::Point>&)’:
  115. src/util/Geometry.cpp:73:31: error: ‘class std::unordered_set<AOCUtil::Geometry::Point>’ has no member named ‘begin’
  116. io_points.begin(), io_points.end(),
  117. ^~~~~
  118. src/util/Geometry.cpp:73:50: error: ‘class std::unordered_set<AOCUtil::Geometry::Point>’ has no member named ‘end’
  119. io_points.begin(), io_points.end(),
  120. ^~~
  121. src/util/Geometry.cpp:74:29: error: ‘class std::unordered_set<AOCUtil::Geometry::Point>’ has no member named ‘begin’
  122. currSet.begin(), currSet.end(),
  123. ^~~~~
  124. src/util/Geometry.cpp:74:46: error: ‘class std::unordered_set<AOCUtil::Geometry::Point>’ has no member named ‘end’
  125. currSet.begin(), currSet.end(),
  126. ^~~
  127. src/util/Geometry.cpp:75:31: error: ‘class std::unordered_set<AOCUtil::Geometry::Point>’ has no member named ‘begin’
  128. io_points.begin()
  129. ^~~~~
  130. Makefile:17: recipe for target 'day' failed
  131. make: *** [day] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement