Borderou de evaluare (job #1427537)

Utilizator alex_bucevschiBucevschi Alexandru alex_bucevschi Data 2 mai 2015 14:32:08
Problema Cercuri Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:16: error: ‘double y1’ redeclared as different kind of symbol double x1, x2, y1, y2, d, r1, 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:17:65: warning: format ‘%lf’ expects argument of type ‘double*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=] scanf("%lf%lf%lf%lf%lf%lf", &x1, &y1, &r1, &x2, &y2, &r2); ^ user.cpp:18:32: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] d = dist(x1, y1, x2, y2); ^ user.cpp:4:8: error: initializing argument 2 of ‘double dist(int, int, int, int)’ [-fpermissive] double dist(int x1, int y1, int x2, int y2) ^ user.cpp:34:17: error: assignment of function ‘double y1(double)’ x1 = y1 = x2 = 0; ^ user.cpp:34:17: error: cannot convert ‘double’ to ‘double(double)throw ()’ in assignment user.cpp:12: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:13: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:14:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &t); ^ user.cpp:17:66: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lf%lf%lf%lf%lf%lf", &x1, &y1, &r1, &x2, &y2, &r2); ^

Ceva nu functioneaza?