Borderou de evaluare (job #1124665)

Utilizator radu2004GOLD radu radu2004 Data 26 februarie 2014 13:08:13
Problema Parc Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:11:17: error: ‘float y1’ redeclared as different kind of symbol float x1,x2,x,y,y1,y2,d,xo,yo,l,c; ^ In file included from /usr/include/features.h:346:0, from /usr/include/stdio.h:28, from user.cpp:1: /usr/include/bits/mathcalls.h:242:1: error: previous declaration of ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp: In function ‘float ics()’: user.cpp:39:26: error: invalid operands of types ‘float’ and ‘double(double)throw ()’ to binary ‘operator-’ return ((b[storiz].x-y1)*(x1-(x2-l))/(y1-(y2-c))+x1); ^ user.cpp:39:51: error: invalid operands of types ‘double(double)throw ()’ and ‘float’ to binary ‘operator-’ return ((b[storiz].x-y1)*(x1-(x2-l))/(y1-(y2-c))+x1); ^ user.cpp: In function ‘float igrec()’: user.cpp:43:39: error: invalid operands of types ‘double(double)throw ()’ and ‘float’ to binary ‘operator-’ return ((a[stvert].x-x1)*(y1-(y2-c))/(x1-(x2-l))+y1); ^ user.cpp: In function ‘void rez()’: user.cpp:55:29: error: cannot convert ‘double (*)(double)throw ()’ to ‘float’ for argument ‘2’ to ‘float dist(float, float, float, float)’ d+=dist (x1,y1,x2,y2); ^ user.cpp:60:38: error: cannot convert ‘double (*)(double)throw ()’ to ‘float’ for argument ‘2’ to ‘float dist(float, float, float, float)’ d+=dist (x1,y1,xo,b[storiz].x)+b[storiz].y-b[storiz].x; ^ user.cpp:62:11: error: assignment of function ‘double y1(double)’ y1=b[storiz].y; ^ user.cpp:62:11: error: cannot convert ‘float’ to ‘double(double)throw ()’ in assignment user.cpp:70:42: error: cannot convert ‘double (*)(double)throw ()’ to ‘float’ for argument ‘2’ to ‘float dist(float, float, float, float)’ d+=dist (x1,y1,a[stvert].x,yo)+a[stvert].y-a[stvert].x; ^ user.cpp:71:15: error: assignment of function ‘double y1(double)’ y1=yo; ^ user.cpp:71:15: error: cannot convert ‘float’ to ‘double(double)throw ()’ in assignment user.cpp:79:32: error: cannot convert ‘double (*)(double)throw ()’ to ‘float’ for argument ‘2’ to ‘float dist(float, float, float, float)’ d+=dist (x1,y1,xo,yo)+a[stvert].y-a[stvert].x+b[storiz].y-b[storiz].x; ^ user.cpp:81:14: error: assignment of function ‘double y1(double)’ y1=b[storiz].y; ^ user.cpp:81:14: error: cannot convert ‘float’ to ‘double(double)throw ()’ in assignment user.cpp: In function ‘int main()’: user.cpp:94:48: warning: format ‘%f’ expects argument of type ‘float*’, but argument 6 has type ‘double (*)(double)throw ()’ [-Wformat=] fscanf (f,"%f%f%f%f%f%f",&x,&y,&x1,&y1,&x2,&y2); ^ user.cpp:98:16: error: no matching function for call to ‘swap(double (&)(double)throw (), float&)’

Ceva nu functioneaza?