Borderou de evaluare (job #1188695)

Utilizator UPT_Patrascoiu_Teudan_Nume3UPTLateRegistry UPT_Patrascoiu_Teudan_Nume3 Data 20 mai 2014 12:55:49
Problema Distanta Status done
Runda Arhiva ICPC Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void read()’: user.cpp:16:26: warning: format ‘%f’ expects argument of type ‘float*’, but argument 2 has type ‘double*’ [-Wformat=] scanf ("%f%f", &A, &B); ^ user.cpp:16:26: warning: format ‘%f’ expects argument of type ‘float*’, but argument 3 has type ‘double*’ [-Wformat=] user.cpp:17:28: warning: format ‘%f’ expects argument of type ‘float*’, but argument 2 has type ‘double*’ [-Wformat=] scanf ("%f%f", &X0, &Y0); ^ user.cpp:17:28: warning: format ‘%f’ expects argument of type ‘float*’, but argument 3 has type ‘double*’ [-Wformat=] user.cpp: In function ‘void solve()’: user.cpp:30:26: warning: unused variable ‘dist3’ [-Wunused-variable] double dist1, dist2, dist3, X1, Y1, X2, Y2, X3, Y3; ^ user.cpp:30:49: warning: unused variable ‘X3’ [-Wunused-variable] double dist1, dist2, dist3, X1, Y1, X2, Y2, X3, Y3; ^ user.cpp:30:53: warning: unused variable ‘Y3’ [-Wunused-variable] double dist1, dist2, dist3, X1, Y1, X2, Y2, X3, Y3; ^ user.cpp: In function ‘void read()’: user.cpp:16:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%f%f", &A, &B); ^ user.cpp:17:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%f%f", &X0, &Y0); ^ user.cpp: In function ‘int main()’: user.cpp:47:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("distanta.in", "r", stdin); ^ user.cpp:48:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("distanta.out", "w", stdout); ^ user.cpp:50:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &T); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms336kbRaspuns gresit0
Punctaj total0

Ceva nu functioneaza?