Borderou de evaluare (job #1564040)
Utilizator | Data | 7 ianuarie 2016 21:45:27 | |
---|---|---|---|
Problema | Cercuri5 | Status | done |
Runda | Arhiva ICPC | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:12:14: error: ‘double y1’ redeclared as different kind of symbol
double x1,x2,y1,y2,xm,ym,t,ar,ang,xx,yy;
^
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 main()’:
user.cpp:22:15: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’
in>>x1>>y1>>x2>>y2;
^
In file included from /usr/include/c++/4.8/fstream:38: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:23:33: error: invalid operands of types ‘double(double)throw ()’ and ‘double’ to binary ‘operator+’
xm=(x1+x2)/2,ym=(y1+y2)/2;
^
user.cpp:24:36: error: invalid operands of types ‘double(double)throw ()’ and ‘double’ to binary ‘operator-’
t=((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))/4;
^
user.cpp:24:44: error: invalid operands of types ‘double(double)throw ()’ and ‘double’ to binary ‘operator-’
t=((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))/4;
^
user.cpp:27:29: error: invalid operands of types ‘double(double)throw ()’ and ‘double’ to binary ‘operator-’
x1-=xm,x2-=xm,y1-=ym,y2-=ym;
^
user.cpp:27:29: error: in evaluation of ‘operator-=(double(double)throw (), double)’
user.cpp:28:27: error: invalid operands of types ‘double(double)throw ()’ and ‘double’ to binary ‘operator/’
x1/=t,x2/=t,y1/=t,y2/=t;
^
user.cpp:28:27: error: in evaluation of ‘operator/=(double(double)throw (), double)’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !