Borderou de evaluare (job #2360610)
Utilizator | Data | 1 martie 2019 23:24:48 | |
---|---|---|---|
Problema | Parc | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:77:15: error: 'int y1' redeclared as different kind of symbol
int X,Y,x1,x2,y1,y2;
^~
In file included from /usr/include/features.h:367:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/6/bits/c++config.h:507,
from /usr/include/c++/6/iostream:38,
from main.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:251:1: note: previous declaration 'double y1(double)'
__MATHCALL (y1,, (_Mdouble_));
^
main.cpp: In function 'long double dist()':
main.cpp:92:26: error: cannot convert 'double (*)(double) throw ()' to 'long double' for argument '2' to 'long double sq(long double, long double)'
nr=sq(x2,x1)+sq(y2,y1);
^
main.cpp: In function 'int main()':
main.cpp:99:10: error: no match for 'operator>>' (operand types are 'InParser' and 'double(double) throw ()')
f>>x1>>y1>>x2>>y2;
~~~~~^~~~
main.cpp:38:12: note: candidate: InParser& InParser::operator>>(int&) <near match>
InParser& operator >> (int &n) {
^~~~~~~~
main.cpp:38:12: note: conversion of argument 1 would be ill-formed:
main.cpp:99:12: error: invalid conversion from 'double (*)(double) throw ()' to 'int' [-fpermissive]
f>>x1>>y1>>x2>>y2;
^~
main.cpp:99:12: error: cannot bind rvalue '(int)y1' to 'int&'
main.cpp:55:12: note: candidate: InParser& InParser::operator>>(long long int&) <near match>
InParser& operator >> (long long &n) {
^~~~~~~~
main.cpp:55:12: note: conversion of argument 1 would be ill-formed:
main.cpp:99:12: error: invalid conversion from 'double (*)(double) throw ()' to 'long long int' [-fpermissive]
f>>x1>>y1>>x2>>y2;
^~
main.cpp:99:12: error: cannot bind rvalue '(long long int)y1' to 'long long int&'
In file included from /usr/include/c++/6/string:53:0,
from /usr/include/c++/6/bits/locale_classes.h:40,
from /usr/include/c++/6/bits/ios_base.h:41,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from main.cpp:1:
/usr/include/c++/6/bits/basic_string.tcc:1437:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
operator>>(basic_istream<_CharT, _Traits>& __in,
^~~~~~~~
/usr/include/c++/6/bits/basic_string.tcc:1437:5: note: template argument deduction/substitution failed:
main.cpp:99:12: note: 'InParser' is not derived from 'std::basic_istream<_CharT, _Traits>'
f>>x1>>y1>>x2>>y2;
^~
In file included from /usr/include/c++/6/istream:934:0,
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !