Borderou de evaluare (job #1038667)

Utilizator sebinechitasebi nechita sebinechita Data 21 noiembrie 2013 21:19:50
Problema Cuiburi Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:12: error: ‘int y1’ redeclared as different kind of symbol int n, x1, y1; ^ In file included from /usr/include/features.h:346:0, from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/os_defines.h:39, from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/c++config.h:420, from /usr/local/include/c++/4.8.0/iostream:38, 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 ‘bool e_inclus(int, int)’: user.cpp:78:15: error: assignment of function ‘double y1(double)’ y1=a[unu].y; ^ user.cpp:78:15: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:79:55: warning: pointer to a function used in arithmetic [-Wpointer-arith] if((x1-a[doi].x)*(x1-a[doi].x)+(y1-a[doi].y)*(y1-a[doi].y)<=a[doi].r*a[doi].r) ^ user.cpp:79:69: warning: pointer to a function used in arithmetic [-Wpointer-arith] if((x1-a[doi].x)*(x1-a[doi].x)+(y1-a[doi].y)*(y1-a[doi].y)<=a[doi].r*a[doi].r) ^ user.cpp:79:70: error: invalid operands of types ‘double (*)(double)throw ()’ and ‘double (*)(double)throw ()’ to binary ‘operator*’ if((x1-a[doi].x)*(x1-a[doi].x)+(y1-a[doi].y)*(y1-a[doi].y)<=a[doi].r*a[doi].r) ^ user.cpp:82:19: error: assignment of function ‘double y1(double)’ y1=a[unu].y; ^ user.cpp:82:19: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:83:59: warning: pointer to a function used in arithmetic [-Wpointer-arith] if((x1-a[doi].x)*(x1-a[doi].x)+(y1-a[doi].y)*(y1-a[doi].y)<=a[doi].r*a[doi].r) ^ user.cpp:83:73: warning: pointer to a function used in arithmetic [-Wpointer-arith] if((x1-a[doi].x)*(x1-a[doi].x)+(y1-a[doi].y)*(y1-a[doi].y)<=a[doi].r*a[doi].r) ^ user.cpp:83:74: error: invalid operands of types ‘double (*)(double)throw ()’ and ‘double (*)(double)throw ()’ to binary ‘operator*’ if((x1-a[doi].x)*(x1-a[doi].x)+(y1-a[doi].y)*(y1-a[doi].y)<=a[doi].r*a[doi].r) ^ user.cpp:86:23: error: assignment of function ‘double y1(double)’ y1=a[unu].y+a[unu].r; ^ user.cpp:86:23: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:87:63: warning: pointer to a function used in arithmetic [-Wpointer-arith] if((x1-a[doi].x)*(x1-a[doi].x)+(y1-a[doi].y)*(y1-a[doi].y)<=a[doi].r*a[doi].r) ^ user.cpp:87:77: warning: pointer to a function used in arithmetic [-Wpointer-arith] if((x1-a[doi].x)*(x1-a[doi].x)+(y1-a[doi].y)*(y1-a[doi].y)<=a[doi].r*a[doi].r) ^ user.cpp:87:78: error: invalid operands of types ‘double (*)(double)throw ()’ and ‘double (*)(double)throw ()’ to binary ‘operator*’ if((x1-a[doi].x)*(x1-a[doi].x)+(y1-a[doi].y)*(y1-a[doi].y)<=a[doi].r*a[doi].r)

Ceva nu functioneaza?