Borderou de evaluare (job #2239320)

Utilizator gabimoiseMoise Gabriel gabimoise Data 10 septembrie 2018 15:57:51
Problema Cercuri Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7:10: error: ‘float y1’ redeclared as different kind of symbol float x1,y1,r1,x2,y2,r2; ^~ In file included from /usr/include/features.h:367:0, from /usr/include/x86_64-linux-gnu/c++/6/32/bits/os_defines.h:39, from /usr/include/x86_64-linux-gnu/c++/6/32/bits/c++config.h:507, from /usr/include/c++/6/iostream:38, from user.cpp:1: /usr/include/bits/mathcalls.h:251:1: note: previous declaration ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp: In function ‘int main()’: user.cpp:18:53: warning: format ‘%f’ expects argument of type ‘float*’, but argument 3 has type ‘double (*)(double) throw ()’ [-Wformat=] scanf("%f%f%f%f%f%f",&x1,&y1,&r1,&x2,&y2,&r2); ^ user.cpp:19:38: error: invalid operands of types ‘double(double) throw ()’ and ‘float’ to binary ‘operator-’ dist=sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)); ~~^~~ user.cpp:19:46: error: invalid operands of types ‘double(double) throw ()’ and ‘float’ to binary ‘operator-’ dist=sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)); ~~^~~ user.cpp:13:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cercuri.in","r",stdin); ^ user.cpp:14:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cercuri.out","w",stdout); ^ user.cpp:15:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&t); ^ user.cpp:18:54: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%f%f%f%f%f%f",&x1,&y1,&r1,&x2,&y2,&r2); ^

Ceva nu functioneaza?