Borderou de evaluare (job #1434311)

Utilizator Cristian1997Vintur Cristian Cristian1997 Data 10 mai 2015 15:09:54
Problema Ecu Status done
Runda itmarathon2015 Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:24:46: warning: format ‘%lf’ expects argument of type ‘double*’, but argument 2 has type ‘long double*’ [-Wformat=] for(i = 0; i < n; ++i) scanf("%lf", x + i); ^ user.cpp:28:24: warning: format ‘%lf’ expects argument of type ‘double*’, but argument 2 has type ‘long double*’ [-Wformat=] scanf("%lf", &p); //p == p[i] ^ user.cpp:37:46: warning: format ‘%lf’ expects argument of type ‘double*’, but argument 2 has type ‘long double*’ [-Wformat=] for(i = 0; i < n; ++i) scanf("%lf", y + i); ^ user.cpp:61:29: warning: format ‘%lf’ expects argument of type ‘double’, but argument 2 has type ‘long double’ [-Wformat=] printf("%.3lf ", val); ^ user.cpp:16:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ecu.in", "r", stdin); ^ user.cpp:17:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ecu.out", "w", stdout); ^ user.cpp:22:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &n, &m); N = 2 * n; ^ user.cpp:24:47: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(i = 0; i < n; ++i) scanf("%lf", x + i); ^ user.cpp:28:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lf", &p); //p == p[i] ^ user.cpp:37:47: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(i = 0; i < n; ++i) scanf("%lf", y + i); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms344kbOkay10
20ms336kbWrong answer!0
3Depăşit320kbTime limit exceeded.0
4Depăşit392kbTime limit exceeded.0
5Depăşit384kbTime limit exceeded.0
6Depăşit388kbTime limit exceeded.0
7Depăşit392kbTime limit exceeded.0
8Depăşit392kbTime limit exceeded.0
9Depăşit396kbTime limit exceeded.0
10Depăşit392kbTime limit exceeded.0
Punctaj total10

Ceva nu functioneaza?