Borderou de evaluare (job #1161272)

Utilizator AdrianaMAdriana Moisil AdrianaM Data 31 martie 2014 09:46:34
Problema Segmente Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:15:9: error: ‘int y1’ redeclared as different kind of symbol int x1, y1, x2, y2; ^ In file included from /usr/include/features.h:346:0, from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/os_defines.h:39, from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/c++config.h:420, from /usr/local/include/c++/4.8.0/iosfwd:38, from /usr/local/include/c++/4.8.0/ios:38, 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/include/bits/mathcalls.h:242:1: error: previous declaration of ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp: In function ‘void READ()’: user.cpp:81:12: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’ is >> x1 >> y1 >> x2 >> y2; ^ 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:872:5: error: initializing argument 1 of ‘std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Tp = double(double)throw ()]’ operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x) ^ user.cpp:82:28: error: no matching function for call to ‘max(int&, double (&)(double)throw ())’ dr = max(max(x1, y1),max(x2, y2)); ^ user.cpp:82:28: note: candidates are: In file included from /usr/local/include/c++/4.8.0/bits/char_traits.h:39:0, from /usr/local/include/c++/4.8.0/ios:40, 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/stl_algobase.h:216:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&) max(const _Tp& __a, const _Tp& __b) ^ /usr/local/include/c++/4.8.0/bits/stl_algobase.h:216:5: note: template argument deduction/substitution failed: user.cpp:82:28: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘double(double)throw ()’) dr = max(max(x1, y1),max(x2, y2)); ^ In file included from /usr/local/include/c++/4.8.0/bits/char_traits.h:39:0, from /usr/local/include/c++/4.8.0/ios:40, 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/stl_algobase.h:260:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare) max(const _Tp& __a, const _Tp& __b, _Compare __comp) ^ /usr/local/include/c++/4.8.0/bits/stl_algobase.h:260:5: note: template argument deduction/substitution failed: user.cpp:82:28: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘double(double)throw ()’) dr = max(max(x1, y1),max(x2, y2));

Ceva nu functioneaza?