Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cd '/home/default/NetBeansProjects/babynames'
- /usr/bin/make -f Makefile CONF=Debug
- "/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
- make[1]: Entering directory '/home/default/NetBeansProjects/babynames'
- "/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux/babynames
- make[2]: Entering directory '/home/default/NetBeansProjects/babynames'
- mkdir -p build/Debug/GNU-Linux
- rm -f "build/Debug/GNU-Linux/babynames.o.d"
- g++ -c -g -MMD -MP -MF "build/Debug/GNU-Linux/babynames.o.d" -o build/Debug/GNU-Linux/babynames.o babynames.cpp
- babynames.cpp: In function ‘std::__cxx11::string convertToLowerCase(std::__cxx11::string)’:
- babynames.cpp:78:39: error: no match for ‘operator+’ (operand types are ‘std::__cxx11::string’ {aka ‘std::__cxx11::basic_string<char>’} and ‘int’)
- lowerCaseName = lowerCaseName + (tolower(name[index]));
- ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
- In file included from /usr/include/c++/8/bits/stl_algobase.h:67,
- from /usr/include/c++/8/bits/char_traits.h:39,
- from /usr/include/c++/8/ios:40,
- from /usr/include/c++/8/ostream:38,
- from /usr/include/c++/8/iostream:39,
- from babynames.cpp:2:
- /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>&)’
- operator+(typename reverse_iterator<_Iterator>::difference_type __n,
- ^~~~~~~~
- /usr/include/c++/8/bits/stl_iterator.h:400:5: note: template argument deduction/substitution failed:
- babynames.cpp:78:62: note: mismatched types ‘const std::reverse_iterator<_Iterator>’ and ‘int’
- lowerCaseName = lowerCaseName + (tolower(name[index]));
- ^
- In file included from /usr/include/c++/8/bits/stl_algobase.h:67,
- from /usr/include/c++/8/bits/char_traits.h:39,
- from /usr/include/c++/8/ios:40,
- from /usr/include/c++/8/ostream:38,
- from /usr/include/c++/8/iostream:39,
- from babynames.cpp:2:
- /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>&)’
- operator+(typename move_iterator<_Iterator>::difference_type __n,
- ^~~~~~~~
- /usr/include/c++/8/bits/stl_iterator.h:1195:5: note: template argument deduction/substitution failed:
- babynames.cpp:78:62: note: mismatched types ‘const std::move_iterator<_IteratorL>’ and ‘int’
- lowerCaseName = lowerCaseName + (tolower(name[index]));
- ^
- In file included from /usr/include/c++/8/string:52,
- from /usr/include/c++/8/bits/locale_classes.h:40,
- from /usr/include/c++/8/bits/ios_base.h:41,
- from /usr/include/c++/8/ios:42,
- from /usr/include/c++/8/ostream:38,
- from /usr/include/c++/8/iostream:39,
- from babynames.cpp:2:
- /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>&)’
- operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
- ^~~~~~~~
- /usr/include/c++/8/bits/basic_string.h:5918:5: note: template argument deduction/substitution failed:
- babynames.cpp:78:62: note: mismatched types ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’ and ‘int’
- lowerCaseName = lowerCaseName + (tolower(name[index]));
- ^
- In file included from /usr/include/c++/8/string:53,
- from /usr/include/c++/8/bits/locale_classes.h:40,
- from /usr/include/c++/8/bits/ios_base.h:41,
- from /usr/include/c++/8/ios:42,
- from /usr/include/c++/8/ostream:38,
- from /usr/include/c++/8/iostream:39,
- from babynames.cpp:2:
- /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>&)’
- operator+(const _CharT* __lhs,
- ^~~~~~~~
- /usr/include/c++/8/bits/basic_string.tcc:1157:5: note: template argument deduction/substitution failed:
- babynames.cpp:78:62: note: mismatched types ‘const _CharT*’ and ‘std::__cxx11::basic_string<char>’
- lowerCaseName = lowerCaseName + (tolower(name[index]));
- ^
- In file included from /usr/include/c++/8/string:53,
- from /usr/include/c++/8/bits/locale_classes.h:40,
- from /usr/include/c++/8/bits/ios_base.h:41,
- from /usr/include/c++/8/ios:42,
- from /usr/include/c++/8/ostream:38,
- from /usr/include/c++/8/iostream:39,
- from babynames.cpp:2:
- /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>&)’
- operator+(_CharT __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs)
- ^~~~~~~~
- /usr/include/c++/8/bits/basic_string.tcc:1173:5: note: template argument deduction/substitution failed:
- babynames.cpp:78:62: note: mismatched types ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’ and ‘int’
- lowerCaseName = lowerCaseName + (tolower(name[index]));
- ^
- In file included from /usr/include/c++/8/string:52,
- from /usr/include/c++/8/bits/locale_classes.h:40,
- from /usr/include/c++/8/bits/ios_base.h:41,
- from /usr/include/c++/8/ios:42,
- from /usr/include/c++/8/ostream:38,
- from /usr/include/c++/8/iostream:39,
- from babynames.cpp:2:
- /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*)’
- operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
- ^~~~~~~~
- /usr/include/c++/8/bits/basic_string.h:5955:5: note: template argument deduction/substitution failed:
- babynames.cpp:78:62: note: mismatched types ‘const _CharT*’ and ‘int’
- lowerCaseName = lowerCaseName + (tolower(name[index]));
- ^
- In file included from /usr/include/c++/8/string:52,
- from /usr/include/c++/8/bits/locale_classes.h:40,
- from /usr/include/c++/8/bits/ios_base.h:41,
- from /usr/include/c++/8/ios:42,
- from /usr/include/c++/8/ostream:38,
- from /usr/include/c++/8/iostream:39,
- from babynames.cpp:2:
- /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)’
- operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs)
- ^~~~~~~~
- /usr/include/c++/8/bits/basic_string.h:5971:5: note: template argument deduction/substitution failed:
- babynames.cpp:78:62: note: deduced conflicting types for parameter ‘_CharT’ (‘char’ and ‘int’)
- lowerCaseName = lowerCaseName + (tolower(name[index]));
- ^
- In file included from /usr/include/c++/8/string:52,
- from /usr/include/c++/8/bits/locale_classes.h:40,
- from /usr/include/c++/8/bits/ios_base.h:41,
- from /usr/include/c++/8/ios:42,
- from /usr/include/c++/8/ostream:38,
- from /usr/include/c++/8/iostream:39,
- from babynames.cpp:2:
- /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>&)’
- operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
- ^~~~~~~~
- /usr/include/c++/8/bits/basic_string.h:5983:5: note: template argument deduction/substitution failed:
- babynames.cpp:78:62: note: mismatched types ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’ and ‘int’
- lowerCaseName = lowerCaseName + (tolower(name[index]));
- ^
- In file included from /usr/include/c++/8/string:52,
- from /usr/include/c++/8/bits/locale_classes.h:40,
- from /usr/include/c++/8/bits/ios_base.h:41,
- from /usr/include/c++/8/ios:42,
- from /usr/include/c++/8/ostream:38,
- from /usr/include/c++/8/iostream:39,
- from babynames.cpp:2:
- /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>&&)’
- operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
- ^~~~~~~~
- /usr/include/c++/8/bits/basic_string.h:5989:5: note: template argument deduction/substitution failed:
- babynames.cpp:78:62: note: mismatched types ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’ and ‘int’
- lowerCaseName = lowerCaseName + (tolower(name[index]));
- ^
- In file included from /usr/include/c++/8/string:52,
- from /usr/include/c++/8/bits/locale_classes.h:40,
- from /usr/include/c++/8/bits/ios_base.h:41,
- from /usr/include/c++/8/ios:42,
- from /usr/include/c++/8/ostream:38,
- from /usr/include/c++/8/iostream:39,
- from babynames.cpp:2:
- /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>&&)’
- operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
- ^~~~~~~~
- /usr/include/c++/8/bits/basic_string.h:5995:5: note: template argument deduction/substitution failed:
- babynames.cpp:78:62: note: mismatched types ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’ and ‘int’
- lowerCaseName = lowerCaseName + (tolower(name[index]));
- ^
- In file included from /usr/include/c++/8/string:52,
- from /usr/include/c++/8/bits/locale_classes.h:40,
- from /usr/include/c++/8/bits/ios_base.h:41,
- from /usr/include/c++/8/ios:42,
- from /usr/include/c++/8/ostream:38,
- from /usr/include/c++/8/iostream:39,
- from babynames.cpp:2:
- /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>&&)’
- operator+(const _CharT* __lhs,
- ^~~~~~~~
- /usr/include/c++/8/bits/basic_string.h:6007:5: note: template argument deduction/substitution failed:
- babynames.cpp:78:62: note: mismatched types ‘const _CharT*’ and ‘std::__cxx11::basic_string<char>’
- lowerCaseName = lowerCaseName + (tolower(name[index]));
- ^
- In file included from /usr/include/c++/8/string:52,
- from /usr/include/c++/8/bits/locale_classes.h:40,
- from /usr/include/c++/8/bits/ios_base.h:41,
- from /usr/include/c++/8/ios:42,
- from /usr/include/c++/8/ostream:38,
- from /usr/include/c++/8/iostream:39,
- from babynames.cpp:2:
- /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>&&)’
- operator+(_CharT __lhs,
- ^~~~~~~~
- /usr/include/c++/8/bits/basic_string.h:6013:5: note: template argument deduction/substitution failed:
- babynames.cpp:78:62: note: mismatched types ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’ and ‘int’
- lowerCaseName = lowerCaseName + (tolower(name[index]));
- ^
- In file included from /usr/include/c++/8/string:52,
- from /usr/include/c++/8/bits/locale_classes.h:40,
- from /usr/include/c++/8/bits/ios_base.h:41,
- from /usr/include/c++/8/ios:42,
- from /usr/include/c++/8/ostream:38,
- from /usr/include/c++/8/iostream:39,
- from babynames.cpp:2:
- /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*)’
- operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
- ^~~~~~~~
- /usr/include/c++/8/bits/basic_string.h:6019:5: note: template argument deduction/substitution failed:
- babynames.cpp:78:62: note: mismatched types ‘const _CharT*’ and ‘int’
- lowerCaseName = lowerCaseName + (tolower(name[index]));
- ^
- In file included from /usr/include/c++/8/string:52,
- from /usr/include/c++/8/bits/locale_classes.h:40,
- from /usr/include/c++/8/bits/ios_base.h:41,
- from /usr/include/c++/8/ios:42,
- from /usr/include/c++/8/ostream:38,
- from /usr/include/c++/8/iostream:39,
- from babynames.cpp:2:
- /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)’
- operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
- ^~~~~~~~
- /usr/include/c++/8/bits/basic_string.h:6025:5: note: template argument deduction/substitution failed:
- babynames.cpp:78:62: note: deduced conflicting types for parameter ‘_CharT’ (‘char’ and ‘int’)
- lowerCaseName = lowerCaseName + (tolower(name[index]));
- ^
- In file included from /usr/include/c++/8/bits/stl_algobase.h:67,
- from /usr/include/c++/8/bits/char_traits.h:39,
- from /usr/include/c++/8/ios:40,
- from /usr/include/c++/8/ostream:38,
- from /usr/include/c++/8/iostream:39,
- from babynames.cpp:2:
- /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>&)’
- operator+(typename __normal_iterator<_Iterator, _Container>::difference_type
- ^~~~~~~~
- /usr/include/c++/8/bits/stl_iterator.h:973:5: note: template argument deduction/substitution failed:
- babynames.cpp:78:62: note: mismatched types ‘const __gnu_cxx::__normal_iterator<_Iterator, _Container>’ and ‘int’
- lowerCaseName = lowerCaseName + (tolower(name[index]));
- ^
- make[2]: *** [nbproject/Makefile-Debug.mk:68: build/Debug/GNU-Linux/babynames.o] Error 1
- make[2]: Leaving directory '/home/default/NetBeansProjects/babynames'
- make[1]: *** [nbproject/Makefile-Debug.mk:59: .build-conf] Error 2
- make[1]: Leaving directory '/home/default/NetBeansProjects/babynames'
- make: *** [nbproject/Makefile-impl.mk:40: .build-impl] Error 2
- BUILD FAILED (exit value 2, total time: 644ms)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement