0_0_30134396_14396.cpp: In function 'int main()':
0_0_30134396_14396.cpp:9:25: error: no matching function for call to 'getline(std::string&, std::istream&)'
while(getline(s[t],cin)){
^
0_0_30134396_14396.cpp:9:25: 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_30134396_14396.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_30134396_14396.cpp:9:25: note: 'std::string {aka std::basic_string<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>'
while(getline(s[t],cin)){
^
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_30134396_14396.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_30134396_14396.cpp:9:25: note: 'std::string {aka std::basic_string<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>'
while(getline(s[t],cin)){
^
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_30134396_14396.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_30134396_14396.cpp:9:25: note: 'std::string {aka std::basic_string<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>'
while(getline(s[t],cin)){
^
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_30134396_14396.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_30134396_14396.cpp:9:25: note: 'std::string {aka std::basic_string<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>'
while(getline(s[t],cin)){
^
0_0_30134396_14396.cpp:10:8: error: 'str' was not declared in this scope
if(str[t].size==0)
^
|