Borderou de evaluare (job #1634311)

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

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:12: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:12:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:15: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:27: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:33: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:35:23: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] fprintf(g,"\n%d",y); ^ user.cpp:12: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:15: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
30ms272kbOK!5
40ms272kbOK!5
50ms268kbOK!5
60ms276kbOK!5
70ms268kbOK!5
80ms272kbOK!5
90ms268kbOK!5
100ms268kbOK!5
110ms292kbOK!5
120ms276kbOK!5
134ms320kbOK!5
1424ms368kbOK!5
1552ms444kbOK!5
1680ms524kbOK!5
1776ms660kbOK!5
18128ms656kbOK!5
19164ms660kbOK!5
2052ms660kbOK!5
Punctaj total100

Ceva nu functioneaza?