Borderou de evaluare (job #1445814)

Utilizator george.stefanGeorge Stefan george.stefan Data 31 mai 2015 02:14:39
Problema Sume Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 65

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:19:5: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long int *’ [-Wformat=] fscanf(f,"%d",&n); ^ user.c:36:9: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long int *’ [-Wformat=] fscanf(f,"%d",&v[i]); ^ user.c:141:13: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d\n",x); ^ user.c:142:13: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] fprintf(g,"%d\n",x); ^ user.c:145:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d ",sol[i]); ^ user.c:146:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] fprintf(g,"%d ",sol[i]); ^ user.c:15:28: warning: unused variable ‘aux’ [-Wunused-variable] long *v,n,i,*sol,*ap,j,aux,k,nr_z=0,nr; ^ user.c:19:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&n); ^ user.c:36:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&v[i]); ^ user.c:78:13: warning: ‘k’ may be used uninitialized in this function [-Wmaybe-uninitialized] ap[v[k]]--; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms268kbOK!5
24ms380kbOK!5
34ms364kbWrong answer!0
40ms276kbWrong answer!0
54ms384kbOK!5
64ms344kbOK!5
74ms356kbOK!5
84ms356kbWrong answer!0
94ms388kbOK!5
1012ms480kbOK!5
110ms376kbOK!5
1212ms3888kbOK!5
1312ms1116kbOK!5
1424ms6628kbOK!5
1532ms7036kbOK!5
1636ms7124kbWrong answer!0
1736ms7564kbWrong answer!0
1836ms7356kbWrong answer!0
1936ms7540kbOK!5
2036ms7100kbWrong answer!0
Punctaj total65

Ceva nu functioneaza?