0_0_13067351_5831.cpp: In function 'int main()':
0_0_13067351_5831.cpp:41:50: error: no matching function for call to 'std::basic_string<char>::basic_string(std::basic_string<char>::reverse_iterator, std::basic_string<char>::iterator)'
cout<<string(temp.rbegin(),temp.end());
^
0_0_13067351_5831.cpp:41:50: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_13067351_5831.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:540:9: note: template<class _InputIterator> std::basic_string<_CharT, _Traits, _Alloc>::basic_string(_InputIterator, _InputIterator, const _Alloc&)
basic_string(_InputIterator __beg, _InputIterator __end,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:540:9: note: template argument deduction/substitution failed:
0_0_13067351_5831.cpp:41:50: note: deduced conflicting types for parameter '_InputIterator' ('std::reverse_iterator<__gnu_cxx::__normal_iterator<char*, std::basic_string<char> > >' and '__gnu_cxx::__normal_iterator<char*, std::basic_string<char> >')
cout<<string(temp.rbegin(),temp.end());
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_13067351_5831.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:530:7: note: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::initializer_list<_Tp>, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc());
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:530:7: note: no known conversion for argument 1 from 'std::basic_string<char>::reverse_iterator {aka std::reverse_iterator<__gnu_cxx::__normal_iterator<char*, std::basic_string<char> > >}' to 'std::initializer_list<char>'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:512:7: note: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
basic_string(basic_string&& __str)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:512:7: note: candidate expects 1 argument, 2 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:502:7: note: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::basic_string<_CharT, _Traits, _Alloc>::size_type, _CharT, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long long unsigned int]
basic_string(size_type __n, _CharT __c, const _Alloc& __a = _Alloc());
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:502:7: note: no known conversion for argument 1 from 'std::basic_string<char>::reverse_iterator {aka std::reverse_iterator<__gnu_cxx::__normal_iterator<char*, std::basic_string<char> > >}' to 'std::basic_string<char>::size_type {aka long long unsigned int}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:495:7: note: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
basic_string(const _CharT* __s, const _Alloc& __a = _Alloc());
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:495:7: note: no known conversion for argument 1 from 'std::basic_string<char>::reverse_iterator {aka std::reverse_iterator<__gnu_cxx::__normal_iterator<char*, std::basic_string<char> > >}' to 'const char*'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:488:7: note: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long long unsigned int]
basic_string(const _CharT* __s, size_type __n,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:488:7: note: no known conversion for argument 1 from 'std::basic_string<char>::reverse_iterator {aka std::reverse_iterator<__gnu_cxx::__normal_iterator<char*, std::basic_string<char> > >}' to 'const char*'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:476:7: note: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::basic_string<_CharT, _Traits, _Alloc>&, std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long long unsigned int]
basic_string(const basic_string& __str, size_type __pos,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:476:7: note: candidate expects 4 arguments, 2 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:467:7: note: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::basic_string<_CharT, _Traits, _Alloc>&, std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long long unsigned int]
basic_string(const basic_string& __str, size_type __pos,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:467:7: note: no known conversion for argument 1 from 'std::basic_string<char>::reverse_iterator {aka std::reverse_iterator<__gnu_cxx::__normal_iterator<char*, std::basic_string<char> > >}' to 'const std::basic_string<char>&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:460:7: note: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
basic_string(const basic_string& __str);
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:460:7: note: candidate expects 1 argument, 2 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:453:7: note: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
basic_string(const _Alloc& __a);
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:453:7: note: candidate expects 1 argument, 2 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:442:7: note: std::basic_string<_CharT, _Traits, _Alloc>::basic_string() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
basic_string()
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:442:7: note: candidate expects 0 arguments, 2 provided
|