Borderou de evaluare (job #1900236)

Utilizator fluture.godlikeGafton Mihnea Alexandru fluture.godlike Data 3 martie 2017 11:17:17
Problema Zmeu2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 60

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:20:59: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘char*’ [-Wformat=] for(int i = 1; i<= p; ++i) scanf("%d %d", &d[i], &c[i]); ^ user.cpp:20:59: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘char*’ [-Wformat=] user.cpp:17:28: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen(in, "r", stdin); ^ user.cpp:18:30: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen(out, "w", stdout); ^ user.cpp:19:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%hd %hd %hd", &n, &p, &k); ^ user.cpp:20:60: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(int i = 1; i<= p; ++i) scanf("%d %d", &d[i], &c[i]); ^ user.cpp:23:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%hd %hd", &a, &b); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms476kbOK10
20ms476kbIncorect0
384ms512kbOK10
4Depăşit500kbTime limit exceeded.0
512ms508kbIncorect0
60ms476kbOK10
74ms484kbOK10
80ms476kbOK10
940ms504kbOK10
10Depăşit504kbTime limit exceeded.0
Punctaj total60

Ceva nu functioneaza?