Borderou de evaluare (job #1528270)

Utilizator radu_uniculeu sunt radu radu_unicul Data 19 noiembrie 2015 13:44:10
Problema Zone Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 80

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:54:18: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d",&n); ^ user.cpp:55:46: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] for(long i=1; i<=9; ++i) scanf("%d",&b[i]); ^ user.cpp:58:53: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] for(long j=1; j<=n; ++j) scanf("%d",&m[i][j]); ^ user.cpp:127:61: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d %d %d %d",l1,l2,c1,c2); ^ user.cpp:127:61: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] user.cpp:127:61: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long int’ [-Wformat=] user.cpp:127:61: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘long int’ [-Wformat=] user.cpp:52:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("zone.in","r",stdin); ^ user.cpp:53:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("zone.out","w",stdout); ^ user.cpp:54:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:55:47: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(long i=1; i<=9; ++i) scanf("%d",&b[i]); ^ user.cpp:58:54: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(long j=1; j<=n; ++j) scanf("%d",&m[i][j]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms444kbOK10
20ms296kbOK10
30ms476kbOK10
40ms684kbOK10
50ms680kbOK10
68ms1088kbOK10
712ms1064kbIncorect0
872ms2292kbIncorect0
944ms2308kbOK10
100ms316kbOK10
Punctaj total80

Ceva nu functioneaza?