Borderou de evaluare (job #2082445)

Utilizator arcadie2kArcadie Caldare arcadie2k Data 6 decembrie 2017 11:00:07
Problema Cercuri Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7:12: error: ‘int y1’ redeclared as different kind of symbol int T, x1, y1, x2, y2, r1, r2; ^ In file included from /usr/include/features.h:357:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39, from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420, from /usr/include/c++/4.8/iosfwd:38, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/i386-linux-gnu/bits/mathcalls.h:243:1: error: previous declaration of ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp: In function ‘int intersect()’: user.cpp:11:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(r1==r2 && x1==x2 && y1==y2) return -1; ^ user.cpp:13:18: error: no matching function for call to ‘max(double (&)(double)throw (), int&)’ y3=max(y1, y2)-min(y1, y2); ^ user.cpp:13:18: note: candidates are: In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/c++/4.8/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/include/c++/4.8/bits/stl_algobase.h:216:5: note: template argument deduction/substitution failed: user.cpp:13:18: note: deduced conflicting types for parameter ‘const _Tp’ (‘double(double)throw ()’ and ‘int’) y3=max(y1, y2)-min(y1, y2); ^ In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/c++/4.8/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/include/c++/4.8/bits/stl_algobase.h:260:5: note: template argument deduction/substitution failed: user.cpp:13:18: note: deduced conflicting types for parameter ‘const _Tp’ (‘double(double)throw ()’ and ‘int’) y3=max(y1, y2)-min(y1, y2); ^ user.cpp:13:30: error: no matching function for call to ‘min(double (&)(double)throw (), int&)’ y3=max(y1, y2)-min(y1, y2); ^ user.cpp:13:30: note: candidates are:

Ceva nu functioneaza?