Pagini recente » Borderou de evaluare (job #699749) | Borderou de evaluare (job #2617719) | Borderou de evaluare (job #3152780) | Borderou de evaluare (job #230509) | Borderou de evaluare (job #2343948)
Borderou de evaluare (job #2343948)
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 |
1 | 2ms | 131kb | OK! | 5 |
2 | 2ms | 131kb | OK! | 5 |
3 | 2ms | 131kb | OK! | 5 |
4 | 2ms | 131kb | OK! | 5 |
5 | 8ms | 393kb | OK! | 5 |
6 | 8ms | 393kb | OK! | 5 |
7 | 23ms | 1048kb | OK! | 5 |
8 | 24ms | 1048kb | OK! | 5 |
9 | 66ms | 2883kb | OK! | 5 |
10 | 54ms | 2883kb | OK! | 5 |
11 | 110ms | 4718kb | OK! | 5 |
12 | 106ms | 4718kb | OK! | 5 |
13 | 210ms | 9306kb | OK! | 5 |
14 | 471ms | 23068kb | OK! | 5 |
15 | 725ms | 36962kb | OK! | 5 |
16 | 880ms | 36962kb | OK! | 5 |
17 | 972ms | 41680kb | OK! | 5 |
18 | 812ms | 41680kb | OK! | 5 |
19 | 1000ms | 45088kb | Time limit exceeded | 0 |
20 | 1000ms | 45613kb | Time limit exceeded | 0 |
Punctaj total | 90 |