Borderou de evaluare (job #1634093)

Utilizator mateibanuBanu Matei Costin mateibanu Data 6 martie 2016 13:19:10
Problema Roata Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 96

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:11:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(f,"%d%d",&n,&p); ^ user.cpp:11:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:14:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(f,"%d",&c[i]);s+=c[i]; ^ user.cpp:16:23: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] fprintf(g,"%d\n",s); ^ user.cpp:26:83: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] if (nr==n) for (j=1;j<=n;j++) {v[j]-=mn;if (v[j]==0) {fprintf(g,"%d ",a[j]);y=j;nr--;}} ^ user.cpp:32:77: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] for (i=1;i<=n;i++) {v[i]-=mn;if (v[i]==0) {nr--;fprintf(g,"%d ",a[i]);y=i;}} ^ user.cpp:34:23: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] fprintf(g,"\n%d",y); ^ user.cpp:11:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d%d",&n,&p); ^ user.cpp:14:29: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&c[i]);s+=c[i]; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms268kbOK!5
20ms272kbOK!5
30ms268kbOK!5
40ms264kbOK!5
50ms272kbOK!5
60ms268kbOK!5
70ms264kbOK!5
80ms264kbOK!5
90ms272kbOK!5
100ms268kbOK!5
110ms292kbOK!5
120ms280kbOK!5
134ms316kbOK!5
1424ms364kbOK!5
1552ms440kbOK!5
1688ms520kbCerinta 1 incorecta !4
1788ms652kbCerinta 1 incorecta !4
18148ms648kbOK!5
19176ms656kbCerinta 1 incorecta !4
2052ms656kbCerinta 1 incorecta !4
Punctaj total96

Ceva nu functioneaza?