Borderou de evaluare (job #2343948)

Utilizator catalin9898Bajenaru Catalin catalin9898 Data 14 februarie 2019 16:17:30
Problema Coduri Huffman Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 90

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:33:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(i = n; i < 2*n; i++) ^~~ main.cpp:36:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' while(s < f) ^~~~~ main.cpp:52:35: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(s == f ||sw != fw && w[sw] < v[s]) ~~~~~~~~~^~~~~~~~~~~~~~~ main.cpp:25:40: warning: unused variable 'p1' [-Wunused-variable] int i, s, f, sw = 0, fw = 0, ord, p1, p2, h; ^~ main.cpp:25:44: warning: unused variable 'p2' [-Wunused-variable] int i, s, f, sw = 0, fw = 0, ord, p1, p2, h; ^~ main.cpp:23: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); ^ main.cpp:24:40: 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); ^ main.cpp:29:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ main.cpp:34:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%lld", &v[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOK!5
22ms131kbOK!5
32ms131kbOK!5
42ms131kbOK!5
58ms393kbOK!5
68ms393kbOK!5
723ms1048kbOK!5
824ms1048kbOK!5
966ms2883kbOK!5
1054ms2883kbOK!5
11110ms4718kbOK!5
12106ms4718kbOK!5
13210ms9306kbOK!5
14471ms23068kbOK!5
15725ms36962kbOK!5
16880ms36962kbOK!5
17972ms41680kbOK!5
18812ms41680kbOK!5
191000ms45088kbTime limit exceeded0
201000ms45613kbTime limit exceeded0
Punctaj total90

Ceva nu functioneaza?