0_0_36954519_27974.cpp: In function 'int main()':
0_0_36954519_27974.cpp:31:27: error: no matching function for call to 'getline(std::istream&, char [1000])'
while(getline(cin, str))
^
0_0_36954519_27974.cpp:31:27: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:53: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_36954519_27974.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.tcc:1068:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&, std::basic_string<_CharT, _Traits, _Alloc>&, _CharT)
getline(basic_istream<_CharT, _Traits>& __in,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.tcc:1068:5: note: template argument deduction/substitution failed:
0_0_36954519_27974.cpp:31:27: note: mismatched types 'std::basic_string<_CharT, _Traits, _Alloc>' and 'char [1000]'
while(getline(cin, str))
^
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_36954519_27974.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2812:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&, std::basic_string<_CharT, _Traits, _Alloc>&)
getline(basic_istream<_CharT, _Traits>& __is,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2812:5: note: template argument deduction/substitution failed:
0_0_36954519_27974.cpp:31:27: note: mismatched types 'std::basic_string<_CharT, _Traits, _Alloc>' and 'char [1000]'
while(getline(cin, str))
^
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_36954519_27974.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2820:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&&, std::basic_string<_CharT, _Traits, _Alloc>&, _CharT)
getline(basic_istream<_CharT, _Traits>&& __is,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2820:5: note: template argument deduction/substitution failed:
0_0_36954519_27974.cpp:31:27: note: mismatched types 'std::basic_string<_CharT, _Traits, _Alloc>' and 'char [1000]'
while(getline(cin, str))
^
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_36954519_27974.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2827:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&&, std::basic_string<_CharT, _Traits, _Alloc>&)
getline(basic_istream<_CharT, _Traits>&& __is,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2827:5: note: template argument deduction/substitution failed:
0_0_36954519_27974.cpp:31:27: note: mismatched types 'std::basic_string<_CharT, _Traits, _Alloc>' and 'char [1000]'
while(getline(cin, str))
^
0_0_36954519_27974.cpp:33:26: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
if(strcmp(str,'0'))
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cstring:42:0,
from 0_0_36954519_27974.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/string.h:53:15: note: initializing argument 2 of 'int strcmp(const char*, const char*)'
int __cdecl strcmp(const char *_Str1,const char *_Str2);
^
0_0_36954519_27974.cpp:37:32: error: request for member 'size' in 'str', which is of non-class type 'char [1000]'
for(int i = 0; i < str.size() ; )
^
|