Borderou de evaluare (job #2002604)

Utilizator ionescueduardIonescu Eduard ionescueduard Data 20 iulie 2017 13:48:12
Problema Cel mai lung subsir comun Status done
Runda Arhiva educationala Compilator c | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.c: In function ‘back’: user.c:28:2: warning: passing argument 1 of ‘fprintf’ from incompatible pointer type [enabled by default] fprintf("%d\n", mat[n - 1][m - 1]); ^ In file included from /usr/include/stdio.h:934:0, from user.c:1: /usr/include/i386-linux-gnu/bits/stdio2.h:96:1: note: expected ‘struct FILE * restrict’ but argument is of type ‘char *’ fprintf (FILE *__restrict __stream, __const char *__restrict __fmt, ...) ^ user.c:28:2: warning: passing argument 2 of ‘fprintf’ makes pointer from integer without a cast [enabled by default] fprintf("%d\n", mat[n - 1][m - 1]); ^ In file included from /usr/include/stdio.h:934:0, from user.c:1: /usr/include/i386-linux-gnu/bits/stdio2.h:96:1: note: expected ‘const char * restrict’ but argument is of type ‘int’ fprintf (FILE *__restrict __stream, __const char *__restrict __fmt, ...) ^ user.c:11:9: warning: unused variable ‘g’ [-Wunused-variable] FILE * g = fopen("cmlsc.out", "w"); ^ user.c: In function ‘main’: user.c:53:9: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("cmlsc.in", "r", stdin); ^ user.c:54:9: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("cmlsc.out", "r", stdout); ^ user.c:57:7: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &M, &N); ^ user.c:59:8: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &a[i]); ^ user.c:61:8: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &b[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms240kbKilled by signal 11(SIGSEGV).0
20ms240kbKilled by signal 11(SIGSEGV).0
30ms244kbKilled by signal 11(SIGSEGV).0
40ms444kbKilled by signal 11(SIGSEGV).0
50ms504kbKilled by signal 11(SIGSEGV).0
60ms276kbKilled by signal 11(SIGSEGV).0
70ms232kbKilled by signal 11(SIGSEGV).0
80ms232kbKilled by signal 11(SIGSEGV).0
90ms240kbKilled by signal 11(SIGSEGV).0
100ms240kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?