Borderou de evaluare (job #1384649)

Utilizator retrogradLucian Bicsi retrograd Data 11 martie 2015 11:54:15
Problema Coduri Huffman Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:62:20: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘var* {aka long long int*}’ [-Wformat=] scanf("%ld", &n); ^ user.cpp:65:27: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘var* {aka long long int*}’ [-Wformat=] scanf("%ld", &V[i]); ^ user.cpp:94:24: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘var {aka long long int}’ [-Wformat=] printf("%ld\n", sum); ^ user.cpp:98:41: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] printf("%ld %ld\n", D[i], BIT[i]); ^ user.cpp:98:41: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘var {aka long long int}’ [-Wformat=] user.cpp:60:12: warning: unused variable ‘v’ [-Wunused-variable] var n, v; ^ user.cpp:57:38: 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:58:38: 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); ^ user.cpp:62:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld", &n); ^ user.cpp:65:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld", &V[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1Depăşit1544kbTime limit exceeded.0
2Depăşit1496kbTime limit exceeded.0
3Depăşit1460kbTime limit exceeded.0
4Depăşit1520kbTime limit exceeded.0
5Depăşit1644kbTime limit exceeded.0
6Depăşit1616kbTime limit exceeded.0
7Depăşit1916kbTime limit exceeded.0
8Depăşit1896kbTime limit exceeded.0
9Depăşit2720kbTime limit exceeded.0
10Depăşit2644kbTime limit exceeded.0
11Depăşit3472kbTime limit exceeded.0
12Depăşit3448kbTime limit exceeded.0
13Depăşit5380kbTime limit exceeded.0
14Depăşit11340kbTime limit exceeded.0
15Depăşit17084kbTime limit exceeded.0
16Depăşit17064kbTime limit exceeded.0
17Depăşit19060kbTime limit exceeded.0
18Depăşit19004kbTime limit exceeded.0
19Depăşit20956kbTime limit exceeded.0
20Depăşit21008kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?