Borderou de evaluare (job #2181834)
Utilizator | Data | 21 martie 2018 21:13:59 | |
---|---|---|---|
Problema | Intrus | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:13:9: error: ‘int y1’ redeclared as different kind of symbol
int x1, y1, x2, y2;
^
In file included from /usr/include/features.h:367:0,
from /usr/include/x86_64-linux-gnu/c++/5/32/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/5/32/bits/c++config.h:482,
from /usr/include/c++/5/iostream:38,
from user.cpp:1:
/usr/include/bits/mathcalls.h:251:1: note: previous declaration ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘void ControlSuspect(int)’:
user.cpp:46:8: error: assignment of function ‘double y1(double)’
y1 = arr[index].x - dangerTier / 2;
^
user.cpp:46:8: error: cannot convert ‘int’ to ‘double(double) throw ()’ in assignment
user.cpp:50:21: error: assignment of function ‘double y1(double)’
if (y1 <= 0) y1 = 1;
^
user.cpp:50:21: error: cannot convert ‘int’ to ‘double(double) throw ()’ in assignment
user.cpp:56:16: error: invalid conversion from ‘double (*)(double) throw ()’ to ‘int’ [-fpermissive]
for (j = y1; j <= y2; j++) {
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !