Borderou de evaluare (job #1612334)

Utilizator maria.sinteaMaria Sintea maria.sintea Data 24 februarie 2016 20:06:49
Problema Betasah Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 8

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:13:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d %d %d\n", &n, &d, &k); ^ user.cpp:13:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:13:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:16:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d %d\n", &x, &y); ^ user.cpp:16:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:21:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d %d\n", &x, &y); ^ user.cpp:21:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:11:26: warning: unused variable ‘p’ [-Wunused-variable] long int d, n, k, m, p, i, j, x, y, nr; ^ user.cpp:9:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("betasah.in", "r", stdin); ^ user.cpp:10:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("betasah.out", "w", stdout); ^ user.cpp:13:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d\n", &n, &d, &k); ^ user.cpp:16:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &x, &y); ^ user.cpp:21:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &x, &y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms276kbPrima cerinta este rezolvata corect, iar a doua este rezolvata gresit.2
20ms284kbAmbele cerinte sunt rezolvate gresit.0
30ms300kbAmbele cerinte sunt rezolvate gresit.0
40ms304kbAmbele cerinte sunt rezolvate gresit.0
50ms300kbPrima cerinta este rezolvata corect, iar a doua este rezolvata gresit.2
60ms440kbAmbele cerinte sunt rezolvate gresit.0
70ms356kbPrima cerinta este rezolvata corect, iar a doua este rezolvata gresit.2
80ms728kbPrima cerinta este rezolvata corect, iar a doua este rezolvata gresit.2
90ms344kbAmbele cerinte sunt rezolvate gresit.0
100ms824kbAmbele cerinte sunt rezolvate gresit.0
Punctaj total8

Ceva nu functioneaza?