Borderou de evaluare (job #2719356)
Utilizator | Data | 9 martie 2021 19:42:05 | |
---|---|---|---|
Problema | Dreptunghi2 | Status | done |
Runda | Arhiva ICPC | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:19:8: error: 'double y1' redeclared as different kind of symbol
double y1 = - 10005, x1 = 10005, y2 = 10005, x2 = - 10005;
^~
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 'int main()':
main.cpp:40:19: error: invalid operands of types 'double(double) throw ()' and 'double' to binary 'operator<'
if(y1 < rotated_y) y1 = rotated_y;
~~~^~~~~~~~~~~
main.cpp:40:37: error: assignment of function 'double y1(double)'
if(y1 < rotated_y) y1 = rotated_y;
^~~~~~~~~
main.cpp:40:37: error: cannot convert 'double' to 'double(double) throw ()' in assignment
main.cpp:46:60: error: invalid operands of types 'double(double) throw ()' and 'double' to binary 'operator-'
out << fixed << setprecision(3) << (x2 - x1) * (y1 - y2) << '\n';
~~~^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !