Borderou de evaluare (job #2245910)

Utilizator ParketPatrick Josephs Parket Data 26 septembrie 2018 10:24:47
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:9:18: warning: passing argument 1 of ‘fopen’ from incompatible pointer type [-Wincompatible-pointer-types] f1=fopen(stdin,"r"); ^~~~~ In file included from user.c:1:0: /usr/include/stdio.h:272:14: note: expected ‘const char * restrict’ but argument is of type ‘struct _IO_FILE *’ extern FILE *fopen (const char *__restrict __filename, ^~~~~ user.c:10:18: warning: passing argument 1 of ‘fopen’ from incompatible pointer type [-Wincompatible-pointer-types] f2=fopen(stdout,"w"); ^~~~~~ In file included from user.c:1:0: /usr/include/stdio.h:272:14: note: expected ‘const char * restrict’ but argument is of type ‘struct _IO_FILE *’ extern FILE *fopen (const char *__restrict __filename, ^~~~~ user.c:17:5: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f1,"%d%d",&A,&B); ^~~~~~~~~~~~~~~~~~~~~~~ user.c:18:22: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] for(i=0;i<A;i++) fscanf(f1,"%d",&a[i]); ^~~~~~~~~~~~~~~~~~~~~ user.c:19:22: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] for(i=0;i<B;i++) fscanf(f1,"%d",&b[i]); ^~~~~~~~~~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms816kbLungime incorecta!0
20ms876kbLungime incorecta!0
30ms808kbLungime incorecta!0
40ms860kbLungime incorecta!0
50ms880kbLungime incorecta!0
60ms868kbLungime incorecta!0
70ms876kbLungime incorecta!0
80ms796kbLungime incorecta!0
90ms860kbLungime incorecta!0
100ms792kbLungime incorecta!0
Punctaj total0

Ceva nu functioneaza?