Borderou de evaluare (job #1126837)

Utilizator Edward2012Eduard Ursinschi Edward2012 Data 27 februarie 2014 09:58:10
Problema Subsecventa de suma maxima Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:14:28: error: no match for ‘operator>>’ (operand types are ‘std::basic_ostream<char>’ and ‘char’) g<<max1<<' '<<a<<" "<<b>>'\n'; ^ user.cpp:14:28: note: candidates are: In file included from /usr/local/include/c++/4.8.0/string:53:0, from /usr/local/include/c++/4.8.0/bits/locale_classes.h:40, from /usr/local/include/c++/4.8.0/bits/ios_base.h:41, from /usr/local/include/c++/4.8.0/ios:42, from /usr/local/include/c++/4.8.0/istream:38, from /usr/local/include/c++/4.8.0/fstream:38, from user.cpp:1: /usr/local/include/c++/4.8.0/bits/basic_string.tcc:996:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::basic_string<_CharT, _Traits, _Alloc>&) operator>>(basic_istream<_CharT, _Traits>& __in, ^ /usr/local/include/c++/4.8.0/bits/basic_string.tcc:996:5: note: template argument deduction/substitution failed: user.cpp:14:30: note: ‘std::basic_ostream<char>’ is not derived from ‘std::basic_istream<_CharT, _Traits>’ g<<max1<<' '<<a<<" "<<b>>'\n'; ^ In file included from /usr/local/include/c++/4.8.0/istream:879:0, from /usr/local/include/c++/4.8.0/fstream:38, from user.cpp:1: /usr/local/include/c++/4.8.0/bits/istream.tcc:955:5: note: template<class _CharT2, class _Traits2> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*) operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) ^ /usr/local/include/c++/4.8.0/bits/istream.tcc:955:5: note: template argument deduction/substitution failed: user.cpp:14:30: note: ‘std::basic_ostream<char>’ is not derived from ‘std::basic_istream<_CharT, _Traits>’ g<<max1<<' '<<a<<" "<<b>>'\n'; ^ In file included from /usr/local/include/c++/4.8.0/istream:879:0, from /usr/local/include/c++/4.8.0/fstream:38, from user.cpp:1: /usr/local/include/c++/4.8.0/bits/istream.tcc:923:5: note: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&) operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) ^ /usr/local/include/c++/4.8.0/bits/istream.tcc:923:5: note: template argument deduction/substitution failed: user.cpp:14:30: note: ‘std::basic_ostream<char>’ is not derived from ‘std::basic_istream<_CharT, _Traits>’ g<<max1<<' '<<a<<" "<<b>>'\n'; ^ In file included from /usr/local/include/c++/4.8.0/fstream:38:0, from user.cpp:1: /usr/local/include/c++/4.8.0/istream:727:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char&) operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c) ^ /usr/local/include/c++/4.8.0/istream:727:5: note: template argument deduction/substitution failed: user.cpp:14:30: note: ‘std::basic_ostream<char>’ is not derived from ‘std::basic_istream<char, _Traits>’ g<<max1<<' '<<a<<" "<<b>>'\n'; ^ In file included from /usr/local/include/c++/4.8.0/fstream:38:0, from user.cpp:1:

Ceva nu functioneaza?