Borderou de evaluare (job #2343949)

Utilizator catalin9898Bajenaru Catalin catalin9898 Data 14 februarie 2019 16:18:56
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
57ms393kbOK!5
68ms393kbOK!5
723ms1048kbOK!5
823ms1048kbOK!5
967ms2883kbOK!5
1064ms2883kbOK!5
11111ms4718kbOK!5
12111ms4718kbOK!5
13174ms9306kbOK!5
14469ms23199kbOK!5
15731ms37093kbOK!5
16724ms36962kbOK!5
17815ms41680kbOK!5
18968ms41680kbOK!5
191002ms45744kbTime limit exceeded0
201001ms45744kbTime limit exceeded0
Punctaj total90

Ceva nu functioneaza?