Pagini recente » Borderou de evaluare (job #2759425) | Borderou de evaluare (job #2517944) | Borderou de evaluare (job #886368) | Borderou de evaluare (job #2529245) | Borderou de evaluare (job #1715333)
Borderou de evaluare (job #1715333)
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 |
1 | 0ms | 284kb | OK! | 5 |
2 | 0ms | 288kb | OK! | 5 |
3 | 0ms | 284kb | OK! | 5 |
4 | 0ms | 280kb | OK! | 5 |
5 | 4ms | 540kb | OK! | 5 |
6 | 4ms | 536kb | OK! | 5 |
7 | 12ms | 1304kb | Lungime incorecta! | 0 |
8 | 12ms | 1300kb | Lungime incorecta! | 0 |
9 | 44ms | 3332kb | Lungime incorecta! | 0 |
10 | 44ms | 3336kb | Lungime incorecta! | 0 |
11 | 76ms | 5368kb | Lungime incorecta! | 0 |
12 | 72ms | 5360kb | Lungime incorecta! | 0 |
13 | 148ms | 10444kb | Lungime incorecta! | 0 |
14 | 380ms | 25672kb | Lungime incorecta! | 0 |
15 | 572ms | 40916kb | Lungime incorecta! | 0 |
16 | 596ms | 40912kb | Lungime incorecta! | 0 |
17 | 652ms | 45984kb | Lungime incorecta! | 0 |
18 | 680ms | 45984kb | Lungime incorecta! | 0 |
19 | 724ms | 51048kb | Lungime incorecta! | 0 |
20 | 712ms | 51048kb | Lungime incorecta! | 0 |
Punctaj total | 30 |