Borderou de evaluare (job #1366679)

Utilizator danstefanDamian Dan Stefan danstefan Data 1 martie 2015 12:53:36
Problema Geometry Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:57: error: ‘int y1’ redeclared as different kind of symbol int i,n,j,k,v[1500],x[1500],nr,v2[1500],ics[1500],x1,x2,y1,y2,a1,b1,c1,a2,b2,c2,x3,x4,y3,y4; ^ 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:18:11: error: assignment of function ‘double y1(double)’ y1=x[i];x1=v[i];y2=ics[i];x2=v2[i]; ^ user.cpp:18:11: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:20:15: warning: pointer to a function used in arithmetic [-Wpointer-arith] a1=y1-y2; ^ user.cpp:20:14: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] a1=y1-y2; ^ user.cpp:22:21: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator*’ c1=y2*x1-x2*y1; ^ user.cpp:26:23: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator*’ if ((a2*x1+b2*y1+c2)*(a2*x2 + b2*y2 + c2)<= 0&&(a1*x3+ b1* y3 + c1)*(a1* x4 + b1* y4 + c1) <= 0)sol++;} ^ user.cpp:11:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("geometry.in","r",stdin); ^ user.cpp:13:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n",&n); ^ user.cpp:15:58: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d %d\n",&v[i],&x[i],&v2[i],&ics[i]); ^

Ceva nu functioneaza?