Borderou de evaluare (job #1198602)
Utilizator | Data | 16 iunie 2014 13:03:56 | |
---|---|---|---|
Problema | Cercuri | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:11:13: error: ‘float y1’ redeclared as different kind of symbol
float x1,x2,y1,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/iostream: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 main()’:
user.cpp:19:10: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’
f>>x1>>y1>>r1>>x2>>y2>>r2;
^
In file included from /usr/include/c++/4.8/iostream:40:0,
from user.cpp:1:
/usr/include/c++/4.8/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:21:57: error: cannot convert ‘double (*)(double)throw ()’ to ‘double’ for argument ‘1’ to ‘double fabs(double)’
float l=pow(pow(fabs(x1)-fabs(x2),2)+pow(fabs(y1)-fabs(y2),2),0.5);
^
user.cpp:25:24: error: invalid operands of types ‘double(double)throw ()’ and ‘float’ to binary ‘operator==’
if(x1==x2&&y1==y2&&r1==r2)g<<-1<<'\n';
^
user.cpp:27:24: error: invalid operands of types ‘double(double)throw ()’ and ‘float’ to binary ‘operator==’
if(x1==x2&&y1==y2)g<<-2<<'\n';
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !