Advertisement
Guest User

Untitled

a guest
Nov 19th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.05 KB | None | 0 0
  1. cd '/home/default/NetBeansProjects/babynames'
  2. /usr/bin/make -f Makefile CONF=Debug
  3. "/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
  4. make[1]: Entering directory '/home/default/NetBeansProjects/babynames'
  5. "/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux/babynames
  6. make[2]: Entering directory '/home/default/NetBeansProjects/babynames'
  7. mkdir -p build/Debug/GNU-Linux
  8. rm -f "build/Debug/GNU-Linux/babynames.o.d"
  9. g++ -c -g -MMD -MP -MF "build/Debug/GNU-Linux/babynames.o.d" -o build/Debug/GNU-Linux/babynames.o babynames.cpp
  10. babynames.cpp: In function ‘std::__cxx11::string convertToLowerCase(std::__cxx11::string)’:
  11. babynames.cpp:78:39: error: no match for ‘operator+’ (operand types are ‘std::__cxx11::string’ {aka ‘std::__cxx11::basic_string<char>’} and ‘int’)
  12. lowerCaseName = lowerCaseName + (tolower(name[index]));
  13. ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
  14. In file included from /usr/include/c++/8/bits/stl_algobase.h:67,
  15. from /usr/include/c++/8/bits/char_traits.h:39,
  16. from /usr/include/c++/8/ios:40,
  17. from /usr/include/c++/8/ostream:38,
  18. from /usr/include/c++/8/iostream:39,
  19. from babynames.cpp:2:
  20. /usr/include/c++/8/bits/stl_iterator.h:400:5: note: candidate: ‘template<class _Iterator> std::reverse_iterator<_Iterator> std::operator+(typename std::reverse_iterator<_Iterator>::difference_type, const std::reverse_iterator<_Iterator>&)’
  21. operator+(typename reverse_iterator<_Iterator>::difference_type __n,
  22. ^~~~~~~~
  23. /usr/include/c++/8/bits/stl_iterator.h:400:5: note: template argument deduction/substitution failed:
  24. babynames.cpp:78:62: note: mismatched types ‘const std::reverse_iterator<_Iterator>’ and ‘int’
  25. lowerCaseName = lowerCaseName + (tolower(name[index]));
  26. ^
  27. In file included from /usr/include/c++/8/bits/stl_algobase.h:67,
  28. from /usr/include/c++/8/bits/char_traits.h:39,
  29. from /usr/include/c++/8/ios:40,
  30. from /usr/include/c++/8/ostream:38,
  31. from /usr/include/c++/8/iostream:39,
  32. from babynames.cpp:2:
  33. /usr/include/c++/8/bits/stl_iterator.h:1195:5: note: candidate: ‘template<class _Iterator> std::move_iterator<_IteratorL> std::operator+(typename std::move_iterator<_IteratorL>::difference_type, const std::move_iterator<_IteratorL>&)’
  34. operator+(typename move_iterator<_Iterator>::difference_type __n,
  35. ^~~~~~~~
  36. /usr/include/c++/8/bits/stl_iterator.h:1195:5: note: template argument deduction/substitution failed:
  37. babynames.cpp:78:62: note: mismatched types ‘const std::move_iterator<_IteratorL>’ and ‘int’
  38. lowerCaseName = lowerCaseName + (tolower(name[index]));
  39. ^
  40. In file included from /usr/include/c++/8/string:52,
  41. from /usr/include/c++/8/bits/locale_classes.h:40,
  42. from /usr/include/c++/8/bits/ios_base.h:41,
  43. from /usr/include/c++/8/ios:42,
  44. from /usr/include/c++/8/ostream:38,
  45. from /usr/include/c++/8/iostream:39,
  46. from babynames.cpp:2:
  47. /usr/include/c++/8/bits/basic_string.h:5918:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)’
  48. operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
  49. ^~~~~~~~
  50. /usr/include/c++/8/bits/basic_string.h:5918:5: note: template argument deduction/substitution failed:
  51. babynames.cpp:78:62: note: mismatched types ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’ and ‘int’
  52. lowerCaseName = lowerCaseName + (tolower(name[index]));
  53. ^
  54. In file included from /usr/include/c++/8/string:53,
  55. from /usr/include/c++/8/bits/locale_classes.h:40,
  56. from /usr/include/c++/8/bits/ios_base.h:41,
  57. from /usr/include/c++/8/ios:42,
  58. from /usr/include/c++/8/ostream:38,
  59. from /usr/include/c++/8/iostream:39,
  60. from babynames.cpp:2:
  61. /usr/include/c++/8/bits/basic_string.tcc:1157:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(const _CharT*, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)’
  62. operator+(const _CharT* __lhs,
  63. ^~~~~~~~
  64. /usr/include/c++/8/bits/basic_string.tcc:1157:5: note: template argument deduction/substitution failed:
  65. babynames.cpp:78:62: note: mismatched types ‘const _CharT*’ and ‘std::__cxx11::basic_string<char>’
  66. lowerCaseName = lowerCaseName + (tolower(name[index]));
  67. ^
  68. In file included from /usr/include/c++/8/string:53,
  69. from /usr/include/c++/8/bits/locale_classes.h:40,
  70. from /usr/include/c++/8/bits/ios_base.h:41,
  71. from /usr/include/c++/8/ios:42,
  72. from /usr/include/c++/8/ostream:38,
  73. from /usr/include/c++/8/iostream:39,
  74. from babynames.cpp:2:
  75. /usr/include/c++/8/bits/basic_string.tcc:1173:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(_CharT, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)’
  76. operator+(_CharT __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs)
  77. ^~~~~~~~
  78. /usr/include/c++/8/bits/basic_string.tcc:1173:5: note: template argument deduction/substitution failed:
  79. babynames.cpp:78:62: note: mismatched types ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’ and ‘int’
  80. lowerCaseName = lowerCaseName + (tolower(name[index]));
  81. ^
  82. In file included from /usr/include/c++/8/string:52,
  83. from /usr/include/c++/8/bits/locale_classes.h:40,
  84. from /usr/include/c++/8/bits/ios_base.h:41,
  85. from /usr/include/c++/8/ios:42,
  86. from /usr/include/c++/8/ostream:38,
  87. from /usr/include/c++/8/iostream:39,
  88. from babynames.cpp:2:
  89. /usr/include/c++/8/bits/basic_string.h:5955:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*)’
  90. operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
  91. ^~~~~~~~
  92. /usr/include/c++/8/bits/basic_string.h:5955:5: note: template argument deduction/substitution failed:
  93. babynames.cpp:78:62: note: mismatched types ‘const _CharT*’ and ‘int’
  94. lowerCaseName = lowerCaseName + (tolower(name[index]));
  95. ^
  96. In file included from /usr/include/c++/8/string:52,
  97. from /usr/include/c++/8/bits/locale_classes.h:40,
  98. from /usr/include/c++/8/bits/ios_base.h:41,
  99. from /usr/include/c++/8/ios:42,
  100. from /usr/include/c++/8/ostream:38,
  101. from /usr/include/c++/8/iostream:39,
  102. from babynames.cpp:2:
  103. /usr/include/c++/8/bits/basic_string.h:5971:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, _CharT)’
  104. operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs)
  105. ^~~~~~~~
  106. /usr/include/c++/8/bits/basic_string.h:5971:5: note: template argument deduction/substitution failed:
  107. babynames.cpp:78:62: note: deduced conflicting types for parameter ‘_CharT’ (‘char’ and ‘int’)
  108. lowerCaseName = lowerCaseName + (tolower(name[index]));
  109. ^
  110. In file included from /usr/include/c++/8/string:52,
  111. from /usr/include/c++/8/bits/locale_classes.h:40,
  112. from /usr/include/c++/8/bits/ios_base.h:41,
  113. from /usr/include/c++/8/ios:42,
  114. from /usr/include/c++/8/ostream:38,
  115. from /usr/include/c++/8/iostream:39,
  116. from babynames.cpp:2:
  117. /usr/include/c++/8/bits/basic_string.h:5983:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)’
  118. operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
  119. ^~~~~~~~
  120. /usr/include/c++/8/bits/basic_string.h:5983:5: note: template argument deduction/substitution failed:
  121. babynames.cpp:78:62: note: mismatched types ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’ and ‘int’
  122. lowerCaseName = lowerCaseName + (tolower(name[index]));
  123. ^
  124. In file included from /usr/include/c++/8/string:52,
  125. from /usr/include/c++/8/bits/locale_classes.h:40,
  126. from /usr/include/c++/8/bits/ios_base.h:41,
  127. from /usr/include/c++/8/ios:42,
  128. from /usr/include/c++/8/ostream:38,
  129. from /usr/include/c++/8/iostream:39,
  130. from babynames.cpp:2:
  131. /usr/include/c++/8/bits/basic_string.h:5989:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&)’
  132. operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
  133. ^~~~~~~~
  134. /usr/include/c++/8/bits/basic_string.h:5989:5: note: template argument deduction/substitution failed:
  135. babynames.cpp:78:62: note: mismatched types ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’ and ‘int’
  136. lowerCaseName = lowerCaseName + (tolower(name[index]));
  137. ^
  138. In file included from /usr/include/c++/8/string:52,
  139. from /usr/include/c++/8/bits/locale_classes.h:40,
  140. from /usr/include/c++/8/bits/ios_base.h:41,
  141. from /usr/include/c++/8/ios:42,
  142. from /usr/include/c++/8/ostream:38,
  143. from /usr/include/c++/8/iostream:39,
  144. from babynames.cpp:2:
  145. /usr/include/c++/8/bits/basic_string.h:5995:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&)’
  146. operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
  147. ^~~~~~~~
  148. /usr/include/c++/8/bits/basic_string.h:5995:5: note: template argument deduction/substitution failed:
  149. babynames.cpp:78:62: note: mismatched types ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’ and ‘int’
  150. lowerCaseName = lowerCaseName + (tolower(name[index]));
  151. ^
  152. In file included from /usr/include/c++/8/string:52,
  153. from /usr/include/c++/8/bits/locale_classes.h:40,
  154. from /usr/include/c++/8/bits/ios_base.h:41,
  155. from /usr/include/c++/8/ios:42,
  156. from /usr/include/c++/8/ostream:38,
  157. from /usr/include/c++/8/iostream:39,
  158. from babynames.cpp:2:
  159. /usr/include/c++/8/bits/basic_string.h:6007:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(const _CharT*, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&)’
  160. operator+(const _CharT* __lhs,
  161. ^~~~~~~~
  162. /usr/include/c++/8/bits/basic_string.h:6007:5: note: template argument deduction/substitution failed:
  163. babynames.cpp:78:62: note: mismatched types ‘const _CharT*’ and ‘std::__cxx11::basic_string<char>’
  164. lowerCaseName = lowerCaseName + (tolower(name[index]));
  165. ^
  166. In file included from /usr/include/c++/8/string:52,
  167. from /usr/include/c++/8/bits/locale_classes.h:40,
  168. from /usr/include/c++/8/bits/ios_base.h:41,
  169. from /usr/include/c++/8/ios:42,
  170. from /usr/include/c++/8/ostream:38,
  171. from /usr/include/c++/8/iostream:39,
  172. from babynames.cpp:2:
  173. /usr/include/c++/8/bits/basic_string.h:6013:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(_CharT, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&)’
  174. operator+(_CharT __lhs,
  175. ^~~~~~~~
  176. /usr/include/c++/8/bits/basic_string.h:6013:5: note: template argument deduction/substitution failed:
  177. babynames.cpp:78:62: note: mismatched types ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’ and ‘int’
  178. lowerCaseName = lowerCaseName + (tolower(name[index]));
  179. ^
  180. In file included from /usr/include/c++/8/string:52,
  181. from /usr/include/c++/8/bits/locale_classes.h:40,
  182. from /usr/include/c++/8/bits/ios_base.h:41,
  183. from /usr/include/c++/8/ios:42,
  184. from /usr/include/c++/8/ostream:38,
  185. from /usr/include/c++/8/iostream:39,
  186. from babynames.cpp:2:
  187. /usr/include/c++/8/bits/basic_string.h:6019:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, const _CharT*)’
  188. operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
  189. ^~~~~~~~
  190. /usr/include/c++/8/bits/basic_string.h:6019:5: note: template argument deduction/substitution failed:
  191. babynames.cpp:78:62: note: mismatched types ‘const _CharT*’ and ‘int’
  192. lowerCaseName = lowerCaseName + (tolower(name[index]));
  193. ^
  194. In file included from /usr/include/c++/8/string:52,
  195. from /usr/include/c++/8/bits/locale_classes.h:40,
  196. from /usr/include/c++/8/bits/ios_base.h:41,
  197. from /usr/include/c++/8/ios:42,
  198. from /usr/include/c++/8/ostream:38,
  199. from /usr/include/c++/8/iostream:39,
  200. from babynames.cpp:2:
  201. /usr/include/c++/8/bits/basic_string.h:6025:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, _CharT)’
  202. operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
  203. ^~~~~~~~
  204. /usr/include/c++/8/bits/basic_string.h:6025:5: note: template argument deduction/substitution failed:
  205. babynames.cpp:78:62: note: deduced conflicting types for parameter ‘_CharT’ (‘char’ and ‘int’)
  206. lowerCaseName = lowerCaseName + (tolower(name[index]));
  207. ^
  208. In file included from /usr/include/c++/8/bits/stl_algobase.h:67,
  209. from /usr/include/c++/8/bits/char_traits.h:39,
  210. from /usr/include/c++/8/ios:40,
  211. from /usr/include/c++/8/ostream:38,
  212. from /usr/include/c++/8/iostream:39,
  213. from babynames.cpp:2:
  214. /usr/include/c++/8/bits/stl_iterator.h:973:5: note: candidate: ‘template<class _Iterator, class _Container> __gnu_cxx::__normal_iterator<_Iterator, _Container> __gnu_cxx::operator+(typename __gnu_cxx::__normal_iterator<_Iterator, _Container>::difference_type, const __gnu_cxx::__normal_iterator<_Iterator, _Container>&)’
  215. operator+(typename __normal_iterator<_Iterator, _Container>::difference_type
  216. ^~~~~~~~
  217. /usr/include/c++/8/bits/stl_iterator.h:973:5: note: template argument deduction/substitution failed:
  218. babynames.cpp:78:62: note: mismatched types ‘const __gnu_cxx::__normal_iterator<_Iterator, _Container>’ and ‘int’
  219. lowerCaseName = lowerCaseName + (tolower(name[index]));
  220. ^
  221. make[2]: *** [nbproject/Makefile-Debug.mk:68: build/Debug/GNU-Linux/babynames.o] Error 1
  222. make[2]: Leaving directory '/home/default/NetBeansProjects/babynames'
  223. make[1]: *** [nbproject/Makefile-Debug.mk:59: .build-conf] Error 2
  224. make[1]: Leaving directory '/home/default/NetBeansProjects/babynames'
  225. make: *** [nbproject/Makefile-impl.mk:40: .build-impl] Error 2
  226.  
  227. BUILD FAILED (exit value 2, total time: 644ms)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement