Borderou de evaluare (job #1683848)

Utilizator mvcl3Marian Iacob mvcl3 Data 10 aprilie 2016 16:55:33
Problema Sortare prin comparare Status done
Runda Arhiva educationala Compilator c | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:54:5: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long int *’ [-Wformat=] fscanf(in, "%d", &n); ^ user.c:56:5: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration] arr = (long *) malloc(n * sizeof(long)); ^ user.c:56:20: warning: incompatible implicit declaration of built-in function ‘malloc’ [enabled by default] arr = (long *) malloc(n * sizeof(long)); ^ user.c:59:9: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long int *’ [-Wformat=] fscanf(in, "%d", &arr[i]); ^ user.c:70:9: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] fprintf(out, "%d ", arr[i]); ^ user.c:54:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d", &n); ^ user.c:59:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d", &arr[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms268kbOK50
20ms264kbIncorect0
30ms264kbOK5
40ms268kbOK5
50ms268kbOK50
60ms268kbIncorect0
70ms272kbIncorect0
80ms272kbOK5
980ms664kbIncorect00
1072ms664kbOK5
1168ms664kbIncorect0
1276ms660kbOK5
13296ms1644kbIncorect00
14252ms1640kbIncorect0
15264ms1636kbIncorect0
16268ms1636kbOK5
17436ms2224kbOK520
18380ms2220kbOK5
19396ms2220kbOK5
20396ms2224kbOK5
Punctaj total20

Ceva nu functioneaza?