Borderou de evaluare (job #1634302)

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

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 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 long int*’ [-Wformat=] user.cpp:14:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long 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 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 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 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 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
10ms272kbOK!5
20ms272kbOK!5
30ms280kbOK!5
40ms272kbOK!5
50ms272kbOK!5
60ms272kbOK!5
70ms272kbOK!5
80ms272kbOK!5
90ms276kbOK!5
100ms272kbOK!5
114ms312kbOK!5
120ms288kbOK!5
138ms372kbOK!5
1448ms472kbOK!5
15128ms624kbOK!5
16216ms776kbCerinta 1 incorecta !4
17Depăşit1052kbTime limit exceeded.0
18360ms1048kbOK!5
19Depăşit1052kbTime limit exceeded.0
20Depăşit1052kbTime limit exceeded.0
Punctaj total84

Ceva nu functioneaza?