Borderou de evaluare (job #1334102)

Utilizator IonMosnoiIon Mosnoi IonMosnoi Data 3 februarie 2015 21:38:52
Problema Coduri Huffman Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:23:14: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d",&n); ^ user.cpp:24:40: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] for(int i=1;i<=n;i++)scanf("%d",&a[i].v),q[i][0]=i; ^ user.cpp:21:32: 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:23:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:24:51: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(int i=1;i<=n;i++)scanf("%d",&a[i].v),q[i][0]=i; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms448kbOK!5
20ms452kbOK!5
30ms452kbOK!5
40ms452kbOK!5
54ms656kbLungime incorecta!0
64ms652kbLungime incorecta!0
716ms1236kbLungime incorecta!0
816ms1236kbLungime incorecta!0
956ms2800kbLungime incorecta!0
1056ms2800kbLungime incorecta!0
1192ms4368kbLungime incorecta!0
1296ms4360kbLungime incorecta!0
13184ms8268kbLungime incorecta!0
14460ms19980kbLungime incorecta!0
15228ms22288kbKilled by signal 11(SIGSEGV).0
16236ms22292kbKilled by signal 11(SIGSEGV).0
17268ms23076kbKilled by signal 11(SIGSEGV).0
18260ms23080kbKilled by signal 11(SIGSEGV).0
19284ms23856kbKilled by signal 11(SIGSEGV).0
20280ms23852kbKilled by signal 11(SIGSEGV).0
Punctaj total20

Ceva nu functioneaza?