Borderou de evaluare (job #1598458)
Utilizator | Data | 12 februarie 2016 22:19:56 | |
---|---|---|---|
Problema | Cercuri | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:11: error: ‘double y1’ redeclared as different kind of symbol
double x1,y1,r1,x2,y2,r2,t;
^
In file included from /usr/include/features.h:357:0,
from /usr/include/assert.h:37,
from /usr/include/c++/4.8/cassert:43,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:33,
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:22: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/sstream:38:0,
from /usr/include/c++/4.8/complex:45,
from /usr/include/c++/4.8/ccomplex:38,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:52,
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:23:47: error: invalid operands of types ‘double(double)throw ()’ and ‘double’ to binary ‘operator-’
double d = sqrt((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2));
^
user.cpp:23:55: error: invalid operands of types ‘double(double)throw ()’ and ‘double’ to binary ‘operator-’
double d = sqrt((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2));
^
user.cpp:24:44: error: invalid initialization of reference of type ‘const double&’ from expression of type ‘double (*)(double)throw ()’
if (isequal(x1,x2) && isequal(y1,y2) && isequal(r1,r2))
^
user.cpp:12:6: error: in passing argument 1 of ‘bool isequal(const double&, const double&)’
bool isequal(const double &a,const double &b)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !