Borderou de evaluare (job #1706458)

Utilizator akaprosAna Kapros akapros Data 22 mai 2016 17:05:55
Problema Ecu Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘void read()’: user.cpp:28:35: warning: format ‘%lf’ expects argument of type ‘double*’, but argument 2 has type ‘long double*’ [-Wformat=] scanf("%lf ", &x[1][i]); ^ user.cpp:38:35: warning: format ‘%lf’ expects argument of type ‘double*’, but argument 2 has type ‘long double*’ [-Wformat=] scanf("%lf ", &s[i][i]); ^ user.cpp:45:34: warning: format ‘%lf’ expects argument of type ‘double*’, but argument 2 has type ‘long double*’ [-Wformat=] scanf("%lf", &s[n + 1][i]); ^ user.cpp: In function ‘void solve()’: user.cpp:49:12: warning: unused variable ‘j’ [-Wunused-variable] int i, j; ^ user.cpp: In function ‘void write()’: user.cpp:67:33: warning: format ‘%lf’ expects argument of type ‘double’, but argument 2 has type ‘long double’ [-Wformat=] printf("%.3lf ", x[i][i]); ^ user.cpp: In function ‘void read()’: user.cpp:24: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:25: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:28:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lf ", &x[1][i]); ^ user.cpp:38:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lf ", &s[i][i]); ^ user.cpp:45:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lf", &s[n + 1][i]); ^ user.cpp: In function ‘void write()’: user.cpp:65: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); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms520kbOkay10
20ms532kbWrong answer!0
30ms540kbWrong answer!0
436ms536kbWrong answer!0
520ms540kbWrong answer!0
620ms536kbWrong answer!0
740ms536kbWrong answer!0
832ms540kbWrong answer!0
940ms540kbWrong answer!0
1036ms536kbWrong answer!0
Punctaj total10

Ceva nu functioneaza?