Borderou de evaluare (job #1899925)
Utilizator | Data | 3 martie 2017 00:15:27 | |
---|---|---|---|
Problema | Cerc3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:22: error: ‘int y1’ redeclared as different kind of symbol
int drepte,i,n,x1,x2,y1,y2,Max,maxpos,d;
^
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:57:11: error: assignment of function ‘double y1(double)’
y1=cerc[panta[i-1].poz].y;
^
user.cpp:57:11: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:58:31: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’
d=(x2-x1)*(x2-x1)+(y2-y1)*(y2-y1);
^
user.cpp:58:39: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’
d=(x2-x1)*(x2-x1)+(y2-y1)*(y2-y1);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !