Borderou de evaluare (job #1400838)

Utilizator gabimoiseMoise Gabriel gabimoise Data 25 martie 2015 14:45:28
Problema Joc10 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 70

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:14:25: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld%ld",&n,&m); ^ user.cpp:14:25: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=] user.cpp:16:47: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] for(j=1;j<=m;j++) scanf("%ld",&a[i][j]); ^ user.cpp:35:45: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] printf("%ld %ld %ld %ld\n",ind,cam,et,nr); ^ user.cpp:35:45: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=] user.cpp:35:45: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘int’ [-Wformat=] user.cpp:35:45: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘int’ [-Wformat=] user.cpp:12:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("joc10.in","r",stdin); ^ user.cpp:13:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("joc10.out","w",stdout); ^ user.cpp:14:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld%ld",&n,&m); ^ user.cpp:16:48: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(j=1;j<=m;j++) scanf("%ld",&a[i][j]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
184msDepăşitMemory limit exceeded.0
20ms512kbOK10
30ms800kbOK10
488msDepăşitMemory limit exceeded.0
50ms516kbOK10
60ms516kbOK10
70ms588kbOK10
884msDepăşitMemory limit exceeded.0
90ms796kbOK10
100ms804kbOK10
Punctaj total70

Ceva nu functioneaza?