Borderou de evaluare (job #1308618)

Utilizator gabimoiseMoise Gabriel gabimoise Data 4 ianuarie 2015 14:39:23
Problema Placare Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 80

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:13:27: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld%ld\n",&n,&m); ^ user.cpp:13:27: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=] user.cpp:40:49: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] for (j=1;j<=m;j++) printf("%ld ",a[i][j]); ^ user.cpp:11:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("placare.in","r",stdin); ^ user.cpp:12:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("placare.out","w",stdout); ^ user.cpp:13:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld%ld\n",&n,&m); ^ user.cpp:16:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(sir); ^ /tmp/ccDrvkrR.o: In function `main': user.cpp:(.text.startup+0x90): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms456kbOK10
20ms452kbOK10
30ms564kbOK10
40ms500kbOK10
50ms560kbOK10
60ms504kbOK10
70ms464kbOK10
84ms608kbKilled by signal 6(SIGABRT).0
916msDepăşitMemory limit exceeded.0
100ms448kbOK10
Punctaj total80

Ceva nu functioneaza?