Advertisement
Guest User

Untitled

a guest
Nov 9th, 2019
1,895
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.88 KB | None | 0 0
  1.  
  2. Compilation failed due to following error(s).In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
  3. from /usr/include/c++/6/vector:60,
  4. from main.cpp:8:
  5. /usr/include/c++/6/bits/predefined_ops.h: In instantiation of ‘bool __gnu_cxx::__ops::_Iter_equals_val<_Value>::operator()(_Iterator) [with _Iterator = __gnu_cxx::__normal_iterator<std::vector<int>*, std::vector<std::vector<int> > >; _Value = const int]’:
  6. /usr/include/c++/6/bits/stl_algo.h:120:14: required from ‘_RandomAccessIterator std::__find_if(_RandomAccessIterator, _RandomAccessIterator, _Predicate, std::random_access_iterator_tag) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<std::vector<int>*, std::vector<std::vector<int> > >; _Predicate = __gnu_cxx::__ops::_Iter_equals_val<const int>]’
  7. /usr/include/c++/6/bits/stl_algo.h:161:23: required from ‘_Iterator std::__find_if(_Iterator, _Iterator, _Predicate) [with _Iterator = __gnu_cxx::__normal_iterator<std::vector<int>*, std::vector<std::vector<int> > >; _Predicate = __gnu_cxx::__ops::_Iter_equals_val<const int>]’
  8. /usr/include/c++/6/bits/stl_algo.h:3792:28: required from ‘_IIter std::find(_IIter, _IIter, const _Tp&) [with _IIter = __gnu_cxx::__normal_iterator<std::vector<int>*, std::vector<std::vector<int> > >; _Tp = int]’
  9. <span class="error_line" onclick="ide.gotoLine('main.cpp',14)">main.cpp:14:92</span>: required from here
  10. /usr/include/c++/6/bits/predefined_ops.h:199:17: error: no match for ‘operator==’ (operand types are ‘std::vector’ and ‘const int’)
  11. { return *__it == _M_value; }
  12. ~~~~~~^~~~~~~~~~~
  13. In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
  14. from /usr/include/c++/6/vector:60,
  15. from main.cpp:8:
  16. /usr/include/c++/6/bits/stl_iterator.h:859:5: note: candidate: template bool __gnu_cxx::operator==(const __gnu_cxx::__normal_iterator<_IteratorL, _Container>&, const __gnu_cxx::__normal_iterator<_IteratorR, _Container>&)
  17. operator==(const __normal_iterator<_IteratorL, _Container>& __lhs,
  18. ^~~~~~~~
  19. /usr/include/c++/6/bits/stl_iterator.h:859:5: note: template argument deduction/substitution failed:
  20. In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
  21. from /usr/include/c++/6/vector:60,
  22. from main.cpp:8:
  23. /usr/include/c++/6/bits/predefined_ops.h:199:17: note: ‘std::vector’ is not derived from ‘const __gnu_cxx::__normal_iterator<_IteratorL, _Container>’
  24. { return *__it == _M_value; }
  25. ~~~~~~^~~~~~~~~~~
  26. In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
  27. from /usr/include/c++/6/vector:60,
  28. from main.cpp:8:
  29. /usr/include/c++/6/bits/stl_iterator.h:866:5: note: candidate: template bool __gnu_cxx::operator==(const __gnu_cxx::__normal_iterator<_Iterator, _Container>&, const __gnu_cxx::__normal_iterator<_Iterator, _Container>&)
  30. operator==(const __normal_iterator<_Iterator, _Container>& __lhs,
  31. ^~~~~~~~
  32. /usr/include/c++/6/bits/stl_iterator.h:866:5: note: template argument deduction/substitution failed:
  33. In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
  34. from /usr/include/c++/6/vector:60,
  35. from main.cpp:8:
  36. /usr/include/c++/6/bits/predefined_ops.h:199:17: note: ‘std::vector’ is not derived from ‘const __gnu_cxx::__normal_iterator<_Iterator, _Container>’
  37. { return *__it == _M_value; }
  38. ~~~~~~^~~~~~~~~~~
  39. In file included from /usr/include/x86_64-linux-gnu/c++/6/bits/c++allocator.h:33:0,
  40. from /usr/include/c++/6/bits/allocator.h:46,
  41. from /usr/include/c++/6/vector:61,
  42. from main.cpp:8:
  43. /usr/include/c++/6/ext/new_allocator.h:139:5: note: candidate: template bool __gnu_cxx::operator==(const __gnu_cxx::new_allocator<_Tp>&, const __gnu_cxx::new_allocator<_Tp>&)
  44. operator==(const new_allocator<_Tp>&, const new_allocator<_Tp>&)
  45. ^~~~~~~~
  46. /usr/include/c++/6/ext/new_allocator.h:139:5: note: template argument deduction/substitution failed:
  47. In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
  48. from /usr/include/c++/6/vector:60,
  49. from main.cpp:8:
  50. /usr/include/c++/6/bits/predefined_ops.h:199:17: note: ‘std::vector’ is not derived from ‘const __gnu_cxx::new_allocator<_Tp>’
  51. { return *__it == _M_value; }
  52. ~~~~~~^~~~~~~~~~~
  53. In file included from /usr/include/c++/6/vector:64:0,
  54. from main.cpp:8:
  55. /usr/include/c++/6/bits/stl_vector.h:1514:5: note: candidate: template bool std::operator==(const std::vector<_Tp, _Alloc>&, const std::vector<_Tp, _Alloc>&)
  56. operator==(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y)
  57. ^~~~~~~~
  58. /usr/include/c++/6/bits/stl_vector.h:1514:5: note: template argument deduction/substitution failed:
  59. In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
  60. from /usr/include/c++/6/vector:60,
  61. from main.cpp:8:
  62. /usr/include/c++/6/bits/predefined_ops.h:199:17: note: mismatched types ‘const std::vector<_Tp, _Alloc>’ and ‘const int’
  63. { return *__it == _M_value; }
  64. ~~~~~~^~~~~~~~~~~
  65. In file included from /usr/include/c++/6/vector:61:0,
  66. from main.cpp:8:
  67. /usr/include/c++/6/bits/allocator.h:152:5: note: candidate: template bool std::operator==(const std::allocator<_Tp1>&, const std::allocator<_Tp1>&)
  68. operator==(const allocator<_Tp>&, const allocator<_Tp>&)
  69. ^~~~~~~~
  70. /usr/include/c++/6/bits/allocator.h:152:5: note: template argument deduction/substitution failed:
  71. In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
  72. from /usr/include/c++/6/vector:60,
  73. from main.cpp:8:
  74. /usr/include/c++/6/bits/predefined_ops.h:199:17: note: ‘std::vector’ is not derived from ‘const std::allocator<_Tp1>’
  75. { return *__it == _M_value; }
  76. ~~~~~~^~~~~~~~~~~
  77. In file included from /usr/include/c++/6/vector:61:0,
  78. from main.cpp:8:
  79. /usr/include/c++/6/bits/allocator.h:146:5: note: candidate: template bool std::operator==(const std::allocator<_Tp1>&, const std::allocator<_T2>&)
  80. operator==(const allocator<_T1>&, const allocator<_T2>&)
  81. ^~~~~~~~
  82. /usr/include/c++/6/bits/allocator.h:146:5: note: template argument deduction/substitution failed:
  83. In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
  84. from /usr/include/c++/6/vector:60,
  85. from main.cpp:8:
  86. /usr/include/c++/6/bits/predefined_ops.h:199:17: note: ‘std::vector’ is not derived from ‘const std::allocator<_Tp1>’
  87. { return *__it == _M_value; }
  88. ~~~~~~^~~~~~~~~~~
  89. In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
  90. from /usr/include/c++/6/vector:60,
  91. from main.cpp:8:
  92. /usr/include/c++/6/bits/stl_iterator.h:1122:5: note: candidate: template bool std::operator==(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorL>&)
  93. operator==(const move_iterator<_Iterator>& __x,
  94. ^~~~~~~~
  95. /usr/include/c++/6/bits/stl_iterator.h:1122:5: note: template argument deduction/substitution failed:
  96. In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
  97. from /usr/include/c++/6/vector:60,
  98. from main.cpp:8:
  99. /usr/include/c++/6/bits/predefined_ops.h:199:17: note: ‘std::vector’ is not derived from ‘const std::move_iterator<_IteratorL>’
  100. { return *__it == _M_value; }
  101. ~~~~~~^~~~~~~~~~~
  102. In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
  103. from /usr/include/c++/6/vector:60,
  104. from main.cpp:8:
  105. /usr/include/c++/6/bits/stl_iterator.h:1116:5: note: candidate: template bool std::operator==(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorR>&)
  106. operator==(const move_iterator<_IteratorL>& __x,
  107. ^~~~~~~~
  108. /usr/include/c++/6/bits/stl_iterator.h:1116:5: note: template argument deduction/substitution failed:
  109. In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
  110. from /usr/include/c++/6/vector:60,
  111. from main.cpp:8:
  112. /usr/include/c++/6/bits/predefined_ops.h:199:17: note: ‘std::vector’ is not derived from ‘const std::move_iterator<_IteratorL>’
  113. { return *__it == _M_value; }
  114. ~~~~~~^~~~~~~~~~~
  115. In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
  116. from /usr/include/c++/6/vector:60,
  117. from main.cpp:8:
  118. /usr/include/c++/6/bits/stl_iterator.h:352:5: note: candidate: template bool std::operator==(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)
  119. operator==(const reverse_iterator<_IteratorL>& __x,
  120. ^~~~~~~~
  121. /usr/include/c++/6/bits/stl_iterator.h:352:5: note: template argument deduction/substitution failed:
  122. In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
  123. from /usr/include/c++/6/vector:60,
  124. from main.cpp:8:
  125. /usr/include/c++/6/bits/predefined_ops.h:199:17: note: ‘std::vector’ is not derived from ‘const std::reverse_iterator<_Iterator>’
  126. { return *__it == _M_value; }
  127. ~~~~~~^~~~~~~~~~~
  128. In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
  129. from /usr/include/c++/6/vector:60,
  130. from main.cpp:8:
  131. /usr/include/c++/6/bits/stl_iterator.h:295:5: note: candidate: template bool std::operator==(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
  132. operator==(const reverse_iterator<_Iterator>& __x,
  133. ^~~~~~~~
  134. /usr/include/c++/6/bits/stl_iterator.h:295:5: note: template argument deduction/substitution failed:
  135. In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
  136. from /usr/include/c++/6/vector:60,
  137. from main.cpp:8:
  138. /usr/include/c++/6/bits/predefined_ops.h:199:17: note: ‘std::vector’ is not derived from ‘const std::reverse_iterator<_Iterator>’
  139. { return *__it == _M_value; }
  140. ~~~~~~^~~~~~~~~~~
  141. In file included from /usr/include/c++/6/bits/stl_algobase.h:64:0,
  142. from /usr/include/c++/6/vector:60,
  143. from main.cpp:8:
  144. /usr/include/c++/6/bits/stl_pair.h:440:5: note: candidate: template constexpr bool std::operator==(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
  145. operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
  146. ^~~~~~~~
  147. /usr/include/c++/6/bits/stl_pair.h:440:5: note: template argument deduction/substitution failed:
  148. In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
  149. from /usr/include/c++/6/vector:60,
  150. from main.cpp:8:
  151. /usr/include/c++/6/bits/predefined_ops.h:199:17: note: ‘std::vector’ is not derived from ‘const std::pair<_T1, _T2>’
  152. { return *__it == _M_value; }
  153. ~~~~~~^~~~~~~~~~~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement