Borderou de evaluare (job #2152108)

Utilizator serban.ionescuionescu serban mihai serban.ionescu Data 5 martie 2018 10:53:06
Problema Pic Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:10:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long unsigned int*’ [-Wformat=] fscanf(f,"%d %d",&v,&n); ^ user.cpp:10:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long unsigned int*’ [-Wformat=] user.cpp:14:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long unsigned int*’ [-Wformat=] {fscanf(f,"%d",&h[i][j]);s=s+h[i][j];if(h[i][j]>maxx) maxx=h[i][j];sum+=h[i][j];}if(sum>opo) {opo=sum;yu=i;}} ^ user.cpp:96:42: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long unsigned int’ [-Wformat=] fprintf(g,"%d %d",ini,wow);} ^ user.cpp:96:42: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long long unsigned int’ [-Wformat=] user.cpp:100:39: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long unsigned int’ [-Wformat=] fprintf(g,"%d %d",fin,wow); ^ user.cpp:100:39: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long long unsigned int’ [-Wformat=] user.cpp:104:31: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long unsigned int’ [-Wformat=] fprintf(g,"%d",yu); ^ user.cpp:10:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d %d",&v,&n); ^ user.cpp:14:25: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] {fscanf(f,"%d",&h[i][j]);s=s+h[i][j];if(h[i][j]>maxx) maxx=h[i][j];sum+=h[i][j];}if(sum>opo) {opo=sum;yu=i;}} ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms932kbOK5
20ms812kbOK5
30ms932kbOK5
40ms936kbOK5
50ms800kbIncorect0
60ms864kbIncorect0
70ms872kbIncorect0
80ms856kbIncorect0
90ms816kbIncorect0
100ms936kbIncorect0
110ms752kbIncorect0
120ms876kbIncorect0
130ms804kbIncorect0
140ms756kbIncorect0
150ms752kbIncorect0
160ms876kbIncorect0
170ms752kbIncorect0
180ms876kbIncorect0
190ms860kbIncorect0
200ms756kbIncorect0
Punctaj total20

Ceva nu functioneaza?