Borderou de evaluare (job #2009404)

Utilizator ionanghelinaIonut Anghelina ionanghelina Data 9 august 2017 16:33:13
Problema Cercuri Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:4:10: error: ‘int y1’ redeclared as different kind of symbol int t,x1,y1,r1,x2,y2,r2; ^ In file included from /usr/include/features.h:357:0, from /usr/include/assert.h:37, from /usr/include/c++/4.8/cassert:43, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:33, 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:13:53: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=] scanf("%d%d%d%d%d%d",&x1,&y1,&r1,&x2,&y2,&r2); ^ user.cpp:14:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(x1==x2 && y1==y2 && r1==r2) ^ user.cpp:19:34: warning: pointer to a function used in arithmetic [-Wpointer-arith] dist=(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2); ^ user.cpp:19:42: warning: pointer to a function used in arithmetic [-Wpointer-arith] dist=(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2); ^ user.cpp:19:44: error: invalid operands of types ‘double (*)(double)throw ()’ and ‘double (*)(double)throw ()’ to binary ‘operator*’ dist=(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2); ^ user.cpp:48:25: warning: format ‘%lf’ expects argument of type ‘double’, but argument 2 has type ‘long double’ [-Wformat=] printf("%lf\n",h); ^ user.cpp:8: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:9: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:10:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&t); ^ user.cpp:13:54: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d%d%d%d",&x1,&y1,&r1,&x2,&y2,&r2); ^

Ceva nu functioneaza?