Borderou de evaluare (job #1315470)

Utilizator dragomirdragomir alex dragomir Data 12 ianuarie 2015 20:44:44
Problema Mere Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:7:8: warning: assignment from incompatible pointer type [enabled by default] fin=fopen("mere.in","r"); ^ user.c:8:9: warning: assignment from incompatible pointer type [enabled by default] fout=fopen("mere.out","w"); ^ user.c:9:5: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type [enabled by default] fscanf(fin, "%d", &t); ^ In file included from /usr/include/features.h:357:0, from /usr/include/stdio.h:28, from user.c:1: /usr/include/stdio.h:449:12: note: expected ‘struct FILE * restrict’ but argument is of type ‘int *’ extern int __REDIRECT (fscanf, (FILE *__restrict __stream, ^ user.c:12:9: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type [enabled by default] fscanf(fin, "%d%d", &n, &k); ^ In file included from /usr/include/features.h:357:0, from /usr/include/stdio.h:28, from user.c:1: /usr/include/stdio.h:449:12: note: expected ‘struct FILE * restrict’ but argument is of type ‘int *’ extern int __REDIRECT (fscanf, (FILE *__restrict __stream, ^ user.c:25:13: warning: passing argument 1 of ‘fprintf’ from incompatible pointer type [enabled by default] fprintf(fout, "Santa Klaus\n"); ^ 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 ‘int *’ fprintf (FILE *__restrict __stream, __const char *__restrict __fmt, ...) ^ user.c:29:17: warning: passing argument 1 of ‘fprintf’ from incompatible pointer type [enabled by default] fprintf(fout, "Mickey Mouse\n"); ^ 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 ‘int *’ fprintf (FILE *__restrict __stream, __const char *__restrict __fmt, ...) ^ user.c:31:17: warning: passing argument 1 of ‘fprintf’ from incompatible pointer type [enabled by default] fprintf(fout, "Remiza\n"); ^ 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 ‘int *’ fprintf (FILE *__restrict __stream, __const char *__restrict __fmt, ...) ^ user.c:9:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms228kbOK10
20ms232kbOK10
30ms232kbIncorect0
40ms232kbIncorect0
50ms228kbIncorect0
60ms228kbIncorect0
70ms224kbIncorect0
80ms232kbIncorect0
90ms228kbIncorect0
100ms232kbIncorect0
Punctaj total20

Ceva nu functioneaza?