Borderou de evaluare (job #1188697)

Utilizator UPT_Patrascoiu_Teudan_Nume3UPTLateRegistry UPT_Patrascoiu_Teudan_Nume3 Data 20 mai 2014 13:02:45
Problema Distanta Status done
Runda Arhiva ICPC Compilator cpp | Vezi sursa
Scor 100

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: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:54: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:55: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:57: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
112ms328kbOK100
Punctaj total100

Ceva nu functioneaza?