Borderou de evaluare (job #1456884)

Utilizator fluture.godlikeGafton Mihnea Alexandru fluture.godlike Data 2 iulie 2015 12:43:46
Problema Ecu Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:47:50: warning: format ‘%lf’ expects argument of type ‘double*’, but argument 2 has type ‘long double*’ [-Wformat=] for(int i = 1; i<= n; i++) scanf("%lf", &x[i]); ^ user.cpp:48:50: warning: format ‘%lf’ expects argument of type ‘double*’, but argument 2 has type ‘long double*’ [-Wformat=] for(int i = 1; i<= n; i++) scanf("%lf", &p[i]); ^ user.cpp:49:50: warning: format ‘%lf’ expects argument of type ‘double*’, but argument 2 has type ‘long double*’ [-Wformat=] for(int i = 1; i<= n; i++) scanf("%lf", &y[i]); ^ user.cpp:65:27: warning: format ‘%lf’ expects argument of type ‘double’, but argument 2 has type ‘long double’ [-Wformat=] printf("%.3lf ", r); ^ user.cpp:46:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &n, &m); ^ user.cpp:47:51: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(int i = 1; i<= n; i++) scanf("%lf", &x[i]); ^ user.cpp:48:51: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(int i = 1; i<= n; i++) scanf("%lf", &p[i]); ^ user.cpp:49:51: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(int i = 1; i<= n; i++) scanf("%lf", &y[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms360kbOkay10
20ms436kbWrong answer!0
30ms448kbWrong answer!0
416ms460kbWrong answer!0
58ms464kbWrong answer!0
616ms460kbWrong answer!0
720ms464kbWrong answer!0
88ms464kbWrong answer!0
912ms464kbWrong answer!0
1016ms464kbWrong answer!0
Punctaj total10

Ceva nu functioneaza?