Borderou de evaluare (job #1580339)

Utilizator andreibotilaBotila Andrei andreibotila Data 25 ianuarie 2016 19:49:43
Problema Cel mai lung subsir comun Status done
Runda Arhiva educationala Compilator c | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:17:5: warning: passing argument 1 of ‘scanf’ from incompatible pointer type [enabled by default] scanf(in, "%d %d", &M, &N); ^ In file included from /usr/include/features.h:357:0, from /usr/include/stdio.h:28, from user.c:1: /usr/include/stdio.h:452:12: note: expected ‘const char * restrict’ but argument is of type ‘struct FILE *’ extern int __REDIRECT (scanf, (__const char *__restrict __format, ...), ^ user.c:19:9: warning: passing argument 1 of ‘scanf’ from incompatible pointer type [enabled by default] scanf(in, "%d", &A[i]); ^ In file included from /usr/include/features.h:357:0, from /usr/include/stdio.h:28, from user.c:1: /usr/include/stdio.h:452:12: note: expected ‘const char * restrict’ but argument is of type ‘struct FILE *’ extern int __REDIRECT (scanf, (__const char *__restrict __format, ...), ^ user.c:21:9: warning: passing argument 1 of ‘scanf’ from incompatible pointer type [enabled by default] scanf(in, "%d", &B[i]); ^ In file included from /usr/include/features.h:357:0, from /usr/include/stdio.h:28, from user.c:1: /usr/include/stdio.h:452:12: note: expected ‘const char * restrict’ but argument is of type ‘struct FILE *’ extern int __REDIRECT (scanf, (__const char *__restrict __format, ...), ^ user.c:12:16: warning: variable ‘out’ set but not used [-Wunused-but-set-variable] FILE *in, *out; ^ user.c:17:10: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf(in, "%d %d", &M, &N); ^ user.c:19:14: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf(in, "%d", &A[i]); ^ user.c:21:14: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf(in, "%d", &B[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms256kbFisier de iesire corupt!0
20ms256kbFisier de iesire corupt!0
30ms256kbFisier de iesire corupt!0
40ms256kbFisier de iesire corupt!0
50ms252kbFisier de iesire corupt!0
60ms252kbFisier de iesire corupt!0
70ms252kbFisier de iesire corupt!0
80ms260kbFisier de iesire corupt!0
90ms256kbFisier de iesire corupt!0
100ms252kbFisier de iesire corupt!0
Punctaj total0

Ceva nu functioneaza?