Borderou de evaluare (job #2132774)

Utilizator inquisitorAnders inquisitor Data 16 februarie 2018 00:25:18
Problema Nivele2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void BFS()’: user.cpp:19:69: warning: too many arguments for format [-Wformat-extra-args] printf("\nnivelul %d: " + (level == 1), ++level, current); ^ user.cpp:19:70: warning: operation on ‘level’ may be undefined [-Wsequence-point] printf("\nnivelul %d: " + (level == 1), ++level, current); ^ user.cpp: In function ‘int main()’: user.cpp:37:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d", &N); ^ user.cpp:41:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d %d", &u, &v); ^ user.cpp:41:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] user.cpp:34:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("nivele2.in", "r", stdin); ^ user.cpp:35:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("nivele2.out", "w", stdout); ^ user.cpp:37:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &N); ^ user.cpp:41:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &u, &v); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms2492kbAi afisat gresit nodurile de pe nivelul 20
20ms2492kbAi afisat gresit nodurile de pe nivelul 20
30ms2492kbAi afisat gresit nodurile de pe nivelul 20
40ms2496kbAi afisat gresit nodurile de pe nivelul 20
50ms2492kbAi afisat gresit nodurile de pe nivelul 20
60ms2496kbAi afisat gresit nodurile de pe nivelul 20
70ms2496kbAi afisat gresit nodurile de pe nivelul 20
80ms2492kbFormat de output incorect0
90ms2492kbFormat de output incorect0
100ms2496kbAi afisat gresit nodurile de pe nivelul 20
Punctaj total0

Ceva nu functioneaza?