Borderou de evaluare (job #1334107)

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

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
40ms456kbOK!5
54ms728kbOK!5
64ms728kbOK!5
724ms1544kbOK!5
824ms1548kbOK!5
976ms3736kbOK!5
1076ms3744kbOK!5
11128ms5924kbOK!5
12132ms5924kbOK!5
13184ms8272kbLungime incorecta!0
14456ms19980kbLungime incorecta!0
15756ms31704kbLungime incorecta!0
16736ms31704kbLungime incorecta!0
17828ms35616kbLungime incorecta!0
18840ms35616kbLungime incorecta!0
19920ms39508kbLungime incorecta!0
20948ms39508kbLungime incorecta!0
Punctaj total60

Ceva nu functioneaza?