Pagini recente » Cod sursa (job #3002467) | Borderou de evaluare (job #1590206) | Borderou de evaluare (job #2629275) | Borderou de evaluare (job #1377766) | Borderou de evaluare (job #2343951)
Borderou de evaluare (job #2343951)
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 | 24ms | 1048kb | OK! | 5 |
| 8 | 24ms | 1048kb | OK! | 5 |
| 9 | 67ms | 2883kb | OK! | 5 |
| 10 | 76ms | 2883kb | OK! | 5 |
| 11 | 106ms | 4718kb | OK! | 5 |
| 12 | 88ms | 4718kb | OK! | 5 |
| 13 | 174ms | 9306kb | OK! | 5 |
| 14 | 469ms | 23068kb | OK! | 5 |
| 15 | 723ms | 36962kb | OK! | 5 |
| 16 | 738ms | 36962kb | OK! | 5 |
| 17 | 947ms | 41811kb | OK! | 5 |
| 18 | 996ms | 41680kb | OK! | 5 |
| 19 | 934ms | 46399kb | OK! | 5 |
| 20 | 895ms | 46399kb | OK! | 5 |
| Punctaj total | 100 |