aka007

Untitled

Oct 19th, 2015
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.48 KB | None | 0 0
  1. In file included from /usr/include/c++/4.8/bits/hashtable.h:35:0,
  2. from /usr/include/c++/4.8/unordered_map:47,
  3. from solution.h:23,
  4. from solution.cpp:-3:
  5. /usr/include/c++/4.8/bits/hashtable_policy.h: In instantiation of 'struct std::__detail::_Hash_code_base<std::pair<int, int>, std::pair<const std::pair<int, int>, bool>, std::__detail::_Select1st, std::hash<std::pair<int, int> >, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, true>':
  6. /usr/include/c++/4.8/bits/hashtable_policy.h:1402:10: required from 'struct std::__detail::_Hashtable_base<std::pair<int, int>, std::pair<const std::pair<int, int>, bool>, std::__detail::_Select1st, std::equal_to<std::pair<int, int> >, std::hash<std::pair<int, int> >, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Hashtable_traits<true, false, true> >'
  7. /usr/include/c++/4.8/bits/hashtable.h:174:11: required from 'class std::_Hashtable<std::pair<int, int>, std::pair<const std::pair<int, int>, bool>, std::allocator<std::pair<const std::pair<int, int>, bool> >, std::__detail::_Select1st, std::equal_to<std::pair<int, int> >, std::hash<std::pair<int, int> >, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, true> >'
  8. /usr/include/c++/4.8/bits/unordered_map.h:100:18: required from 'class std::unordered_map<std::pair<int, int>, bool>'
  9. solution.cpp:2:36: required from here
  10. /usr/include/c++/4.8/bits/hashtable_policy.h:1070:12: error: invalid use of incomplete type 'struct std::hash<std::pair<int, int> >'
  11. struct _Hash_code_base<_Key, _Value, _ExtractKey, _H1, _H2,
  12. ^
  13. In file included from /usr/include/c++/4.8/bits/basic_string.h:3033:0,
  14. from /usr/include/c++/4.8/string:52,
  15. from /usr/include/c++/4.8/bits/locale_classes.h:40,
  16. from /usr/include/c++/4.8/bits/ios_base.h:41,
  17. from /usr/include/c++/4.8/ios:42,
  18. from /usr/include/c++/4.8/ostream:38,
  19. from /usr/include/c++/4.8/iostream:39,
  20. from solution.h:7,
  21. from solution.cpp:-3:
  22. /usr/include/c++/4.8/bits/functional_hash.h:58:12: error: declaration of 'struct std::hash<std::pair<int, int> >'
  23. struct hash;
  24. ^
  25. In file included from /usr/include/c++/4.8/bits/hashtable.h:35:0,
  26. from /usr/include/c++/4.8/unordered_map:47,
  27. from solution.h:23,
  28. from solution.cpp:-3:
  29. /usr/include/c++/4.8/bits/hashtable_policy.h:1070:12: error: invalid use of incomplete type 'struct std::hash<std::pair<int, int> >'
  30. struct _Hash_code_base<_Key, _Value, _ExtractKey, _H1, _H2,
  31. ^
  32. In file included from /usr/include/c++/4.8/bits/basic_string.h:3033:0,
  33. from /usr/include/c++/4.8/string:52,
  34. from /usr/include/c++/4.8/bits/locale_classes.h:40,
  35. from /usr/include/c++/4.8/bits/ios_base.h:41,
  36. from /usr/include/c++/4.8/ios:42,
  37. from /usr/include/c++/4.8/ostream:38,
  38. from /usr/include/c++/4.8/iostream:39,
  39. from solution.h:7,
  40. from solution.cpp:-3:
  41. /usr/include/c++/4.8/bits/functional_hash.h:58:12: error: declaration of 'struct std::hash<std::pair<int, int> >'
  42. struct hash;
  43. ^
  44. In file included from /usr/include/c++/4.8/bits/hashtable.h:35:0,
  45. from /usr/include/c++/4.8/unordered_map:47,
  46. from solution.h:23,
  47. from solution.cpp:-3:
  48. /usr/include/c++/4.8/bits/hashtable_policy.h:1082:53: error: invalid use of incomplete type 'struct std::hash<std::pair<int, int> >'
  49. using __ebo_h1 = _Hashtable_ebo_helper<1, _H1>;
  50. ^
  51. In file included from /usr/include/c++/4.8/bits/basic_string.h:3033:0,
  52. from /usr/include/c++/4.8/string:52,
  53. from /usr/include/c++/4.8/bits/locale_classes.h:40,
  54. from /usr/include/c++/4.8/bits/ios_base.h:41,
  55. from /usr/include/c++/4.8/ios:42,
  56. from /usr/include/c++/4.8/ostream:38,
  57. from /usr/include/c++/4.8/iostream:39,
  58. from solution.h:7,
  59. from solution.cpp:-3:
  60. /usr/include/c++/4.8/bits/functional_hash.h:58:12: error: declaration of 'struct std::hash<std::pair<int, int> >'
  61. struct hash;
  62. ^
  63. In file included from /usr/include/c++/4.8/bits/hashtable.h:35:0,
  64. from /usr/include/c++/4.8/unordered_map:47,
  65. from solution.h:23,
  66. from solution.cpp:-3:
  67. /usr/include/c++/4.8/bits/hashtable_policy.h:1082:53: error: invalid use of incomplete type 'struct std::hash<std::pair<int, int> >'
  68. using __ebo_h1 = _Hashtable_ebo_helper<1, _H1>;
  69. ^
  70. In file included from /usr/include/c++/4.8/bits/basic_string.h:3033:0,
  71. from /usr/include/c++/4.8/string:52,
  72. from /usr/include/c++/4.8/bits/locale_classes.h:40,
  73. from /usr/include/c++/4.8/bits/ios_base.h:41,
  74. from /usr/include/c++/4.8/ios:42,
  75. from /usr/include/c++/4.8/ostream:38,
  76. from /usr/include/c++/4.8/iostream:39,
  77. from solution.h:7,
  78. from solution.cpp:-3:
  79. /usr/include/c++/4.8/bits/functional_hash.h:58:12: error: declaration of 'struct std::hash<std::pair<int, int> >'
  80. struct hash;
  81. ^
  82. solution.cpp: In constructor 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map(std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::size_type, const hasher&, const key_equal&, const allocator_type&) [with _Key = std::pair<int, int>; _Tp = bool; _Hash = std::hash<std::pair<int, int> >; _Pred = std::equal_to<std::pair<int, int> >; _Alloc = std::allocator<std::pair<const std::pair<int, int>, bool> >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::size_type = long unsigned int; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::hasher = std::hash<std::pair<int, int> >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_equal = std::equal_to<std::pair<int, int> >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::allocator_type = std::allocator<std::pair<const std::pair<int, int>, bool> >]':
  83. solution.cpp:2:36: error: invalid use of incomplete type 'std::unordered_map<std::pair<int, int>, bool>::hasher {aka struct std::hash<std::pair<int, int> >}'
  84. unordered_map<pair<int,int>, bool> dp;
  85. ^
  86. In file included from /usr/include/c++/4.8/bits/basic_string.h:3033:0,
  87. from /usr/include/c++/4.8/string:52,
  88. from /usr/include/c++/4.8/bits/locale_classes.h:40,
  89. from /usr/include/c++/4.8/bits/ios_base.h:41,
  90. from /usr/include/c++/4.8/ios:42,
  91. from /usr/include/c++/4.8/ostream:38,
  92. from /usr/include/c++/4.8/iostream:39,
  93. from solution.h:7,
  94. from solution.cpp:-3:
  95. /usr/include/c++/4.8/bits/functional_hash.h:58:12: error: declaration of 'std::unordered_map<std::pair<int, int>, bool>::hasher {aka struct std::hash<std::pair<int, int> >}'
  96. struct hash;
  97. ^
  98. solution.cpp:2:36: note: when instantiating default argument for call to std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map(std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::size_type, const hasher&, const key_equal&, const allocator_type&) [with _Key = std::pair<int, int>; _Tp = bool; _Hash = std::hash<std::pair<int, int> >; _Pred = std::equal_to<std::pair<int, int> >; _Alloc = std::allocator<std::pair<const std::pair<int, int>, bool> >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::size_type = long unsigned int; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::hasher = std::hash<std::pair<int, int> >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_equal = std::equal_to<std::pair<int, int> >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::allocator_type = std::allocator<std::pair<const std::pair<int, int>, bool> >]
  99. unordered_map<pair<int,int>, bool> dp;
  100. ^
  101. In file included from /usr/include/c++/4.8/bits/hashtable.h:35:0,
  102. from /usr/include/c++/4.8/unordered_map:47,
  103. from solution.h:23,
  104. from solution.cpp:-3:
  105. /usr/include/c++/4.8/bits/hashtable_policy.h: In instantiation of 'std::__detail::_Hash_code_base<_Key, _Value, _ExtractKey, _H1, _H2, std::__detail::_Default_ranged_hash, true>::__hash_code std::__detail::_Hash_code_base<_Key, _Value, _ExtractKey, _H1, _H2, std::__detail::_Default_ranged_hash, true>::_M_hash_code(const _Key&) const [with _Key = std::pair<int, int>; _Value = std::pair<const std::pair<int, int>, bool>; _ExtractKey = std::__detail::_Select1st; _H1 = std::hash<std::pair<int, int> >; _H2 = std::__detail::_Mod_range_hashing; std::__detail::_Hash_code_base<_Key, _Value, _ExtractKey, _H1, _H2, std::__detail::_Default_ranged_hash, true>::__hash_code = long unsigned int]':
  106. /usr/include/c++/4.8/bits/hashtable.h:1023:50: required from 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::iterator std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::find(const key_type&) [with _Key = std::pair<int, int>; _Value = std::pair<const std::pair<int, int>, bool>; _Alloc = std::allocator<std::pair<const std::pair<int, int>, bool> >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<std::pair<int, int> >; _H1 = std::hash<std::pair<int, int> >; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<true, false, true>; std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::iterator = std::__detail::_Node_iterator<std::pair<const std::pair<int, int>, bool>, false, true>; std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::key_type = std::pair<int, int>]'
  107. /usr/include/c++/4.8/bits/unordered_map.h:543:29: required from 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::iterator std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::find(const key_type&) [with _Key = std::pair<int, int>; _Tp = bool; _Hash = std::hash<std::pair<int, int> >; _Pred = std::equal_to<std::pair<int, int> >; _Alloc = std::allocator<std::pair<const std::pair<int, int>, bool> >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::iterator = std::__detail::_Node_iterator<std::pair<const std::pair<int, int>, bool>, false, true>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = std::pair<int, int>]'
  108. solution.cpp:16:30: required from here
  109. /usr/include/c++/4.8/bits/hashtable_policy.h:1103:22: error: no match for call to '(const std::hash<std::pair<int, int> >) (const std::pair<int, int>&)'
  110. { return _M_h1()(__k); }
  111. ^
  112. /usr/include/c++/4.8/bits/hashtable_policy.h: In instantiation of 'std::__detail::_Hash_code_base<_Key, _Value, _ExtractKey, _H1, _H2, std::__detail::_Default_ranged_hash, true>::_Hash_code_base(const _ExtractKey&, const _H1&, const _H2&, const std::__detail::_Default_ranged_hash&) [with _Key = std::pair<int, int>; _Value = std::pair<const std::pair<int, int>, bool>; _ExtractKey = std::__detail::_Select1st; _H1 = std::hash<std::pair<int, int> >; _H2 = std::__detail::_Mod_range_hashing]':
  113. /usr/include/c++/4.8/bits/hashtable_policy.h:1463:65: required from 'std::__detail::_Hashtable_base<_Key, _Value, _ExtractKey, _Equal, _H1, _H2, _Hash, _Traits>::_Hashtable_base(const _ExtractKey&, const _H1&, const _H2&, const _Hash&, const _Equal&) [with _Key = std::pair<int, int>; _Value = std::pair<const std::pair<int, int>, bool>; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<std::pair<int, int> >; _H1 = std::hash<std::pair<int, int> >; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _Traits = std::__detail::_Hashtable_traits<true, false, true>]'
  114. /usr/include/c++/4.8/bits/hashtable.h:828:24: required from 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::_Hashtable(std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::size_type, const _H1&, const _H2&, const _Hash&, const _Equal&, const _ExtractKey&, const allocator_type&) [with _Key = std::pair<int, int>; _Value = std::pair<const std::pair<int, int>, bool>; _Alloc = std::allocator<std::pair<const std::pair<int, int>, bool> >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<std::pair<int, int> >; _H1 = std::hash<std::pair<int, int> >; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<true, false, true>; std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::size_type = long unsigned int; std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::allocator_type = std::allocator<std::pair<const std::pair<int, int>, bool> >]'
  115. /usr/include/c++/4.8/bits/hashtable.h:397:26: required from 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::_Hashtable(std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::size_type, const _H1&, const key_equal&, const allocator_type&) [with _Key = std::pair<int, int>; _Value = std::pair<const std::pair<int, int>, bool>; _Alloc = std::allocator<std::pair<const std::pair<int, int>, bool> >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<std::pair<int, int> >; _H1 = std::hash<std::pair<int, int> >; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<true, false, true>; std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::size_type = long unsigned int; std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::key_equal = std::equal_to<std::pair<int, int> >; std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::allocator_type = std::allocator<std::pair<const std::pair<int, int>, bool> >]'
  116. /usr/include/c++/4.8/bits/unordered_map.h:142:35: required from 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map(std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::size_type, const hasher&, const key_equal&, const allocator_type&) [with _Key = std::pair<int, int>; _Tp = bool; _Hash = std::hash<std::pair<int, int> >; _Pred = std::equal_to<std::pair<int, int> >; _Alloc = std::allocator<std::pair<const std::pair<int, int>, bool> >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::size_type = long unsigned int; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::hasher = std::hash<std::pair<int, int> >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_equal = std::equal_to<std::pair<int, int> >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::allocator_type = std::allocator<std::pair<const std::pair<int, int>, bool> >]'
  117. solution.cpp:2:36: required from here
  118. /usr/include/c++/4.8/bits/hashtable_policy.h:1099:63: error: invalid use of incomplete type 'struct std::hash<std::pair<int, int> >'
  119. : __ebo_extract_key(__ex), __ebo_h1(__h1), __ebo_h2(__h2) { }
  120. ^
  121. In file included from /usr/include/c++/4.8/bits/basic_string.h:3033:0,
  122. from /usr/include/c++/4.8/string:52,
  123. from /usr/include/c++/4.8/bits/locale_classes.h:40,
  124. from /usr/include/c++/4.8/bits/ios_base.h:41,
  125. from /usr/include/c++/4.8/ios:42,
  126. from /usr/include/c++/4.8/ostream:38,
  127. from /usr/include/c++/4.8/iostream:39,
  128. from solution.h:7,
  129. from solution.cpp:-3:
  130. /usr/include/c++/4.8/bits/functional_hash.h:58:12: error: declaration of 'struct std::hash<std::pair<int, int> >'
  131. struct hash;
  132. ^
  133. In file included from /usr/include/c++/4.8/bits/hashtable.h:35:0,
  134. from /usr/include/c++/4.8/unordered_map:47,
  135. from solution.h:23,
  136. from solution.cpp:-3:
  137. /usr/include/c++/4.8/bits/hashtable_policy.h:1099:63: error: invalid use of incomplete type 'struct std::hash<std::pair<int, int> >'
  138. : __ebo_extract_key(__ex), __ebo_h1(__h1), __ebo_h2(__h2) { }
  139. ^
  140. In file included from /usr/include/c++/4.8/bits/basic_string.h:3033:0,
  141. from /usr/include/c++/4.8/string:52,
  142. from /usr/include/c++/4.8/bits/locale_classes.h:40,
  143. from /usr/include/c++/4.8/bits/ios_base.h:41,
  144. from /usr/include/c++/4.8/ios:42,
  145. from /usr/include/c++/4.8/ostream:38,
  146. from /usr/include/c++/4.8/iostream:39,
  147. from solution.h:7,
  148. from solution.cpp:-3:
  149. /usr/include/c++/4.8/bits/functional_hash.h:58:12: error: declaration of 'struct std::hash<std::pair<int, int> >'
  150. struct hash;
  151. ^
Advertisement
Add Comment
Please, Sign In to add comment