Borderou de evaluare (job #1779183)

Utilizator georgerapeanuRapeanu George georgerapeanu Data 14 octombrie 2016 21:56:26
Problema Taxi Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:18: error: ‘double y1’ redeclared as different kind of symbol double A,B,x1,x2,y1,y2,a,b,c,ap,bp,cp; ^ 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/cstdio:41, 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:21:60: warning: format ‘%lf’ expects argument of type ‘double*’, but argument 6 has type ‘double (*)(double)throw ()’ [-Wformat=] fscanf(f,"%lf%lf%lf%lf%lf%lf",&A,&B,&x1,&y1,&x2,&y2); ^ user.cpp:22:14: error: invalid operands of types ‘double’ and ‘double(double)throw ()’ to binary ‘operator-’ a=y2-y1;b=x1-x2;c=y1*x2-y2*x1; ^ user.cpp:22:30: error: invalid operands of types ‘double(double)throw ()’ and ‘double’ to binary ‘operator*’ a=y2-y1;b=x1-x2;c=y1*x2-y2*x1; ^ user.cpp:25:36: error: invalid operands of types ‘double(double)throw ()’ and ‘double’ to binary ‘operator+’ cp=-ap*((x1+x2)/2)-bp*((y1+y2)/2); ^ user.cpp:18:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&T); ^ user.cpp:21:61: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%lf%lf%lf%lf%lf%lf",&A,&B,&x1,&y1,&x2,&y2); ^

Ceva nu functioneaza?