Borderou de evaluare (job #1715333)

Utilizator Cristian1997Vintur Cristian Cristian1997 Data 10 iunie 2016 12:52:52
Problema Coduri Huffman Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘void read()’: user.cpp:57:56: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘ll* {aka long long int*}’ [-Wformat=] for (int i = 0; i < n; ++i) scanf("%d", &nodes[i].freq), nodes[i].l = nodes[i].r = -1; ^ user.cpp: In function ‘void write()’: user.cpp:79:23: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘ll {aka long long int}’ [-Wformat=] printf("%d\n", lgCode); ^ user.cpp:82:36: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘ll {aka long long int}’ [-Wformat=] printf("%d %d\n", lg[i], codes[i]); ^ user.cpp: In function ‘void read()’: user.cpp:54:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("huffman.in", "r", stdin); ^ user.cpp:56:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:57:87: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (int i = 0; i < n; ++i) scanf("%d", &nodes[i].freq), nodes[i].l = nodes[i].r = -1; ^ user.cpp: In function ‘void write()’: user.cpp:74:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("huffman.out", "w", stdout); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms284kbOK!5
20ms288kbOK!5
30ms284kbOK!5
40ms280kbOK!5
54ms540kbOK!5
64ms536kbOK!5
712ms1304kbLungime incorecta!0
812ms1300kbLungime incorecta!0
944ms3332kbLungime incorecta!0
1044ms3336kbLungime incorecta!0
1176ms5368kbLungime incorecta!0
1272ms5360kbLungime incorecta!0
13148ms10444kbLungime incorecta!0
14380ms25672kbLungime incorecta!0
15572ms40916kbLungime incorecta!0
16596ms40912kbLungime incorecta!0
17652ms45984kbLungime incorecta!0
18680ms45984kbLungime incorecta!0
19724ms51048kbLungime incorecta!0
20712ms51048kbLungime incorecta!0
Punctaj total30

Ceva nu functioneaza?