Borderou de evaluare (job #1617195)

Utilizator Burbon13Burbon13 Burbon13 Data 27 februarie 2016 12:48:22
Problema Cercuri Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:11: error: ‘double y1’ redeclared as different kind of symbol double x1,y1,r1,x2,y2,r2; ^ 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 ‘double dist()’: user.cpp:12:34: error: invalid operands of types ‘double(double)throw ()’ and ‘double’ to binary ‘operator-’ return (x1-x2)*(x1-x2) + (y1-y2)*(y1-y2); ^ user.cpp:12:42: error: invalid operands of types ‘double(double)throw ()’ and ‘double’ to binary ‘operator-’ return (x1-x2)*(x1-x2) + (y1-y2)*(y1-y2); ^ user.cpp: In function ‘int main()’: user.cpp:22:43: warning: format ‘%lf’ expects argument of type ‘double*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=] scanf("%lf %lf %lf", &x1, &y1, &r1); ^ user.cpp:25:30: error: invalid operands of types ‘double(double)throw ()’ and ‘double’ to binary ‘operator==’ if(x1 == x2 && y1 == y2 && r1 == r2){ /// identice ^ user.cpp: In function ‘double dist()’: user.cpp:13:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:16:38: 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:17:40: 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:19:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &T); ^ user.cpp:22:44: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lf %lf %lf", &x1, &y1, &r1); ^ user.cpp:23:44: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lf %lf %lf", &x2, &y2, &r2); ^

Ceva nu functioneaza?