Borderou de evaluare (job #1315452)

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

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:15:13: warning: passing argument 1 of ‘fprintf’ from incompatible pointer type [enabled by default] fprintf(fout, "Remiza"); ^ 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:37:17: 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:41:21: 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:43:21: warning: passing argument 1 of ‘fprintf’ from incompatible pointer type [enabled by default]
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms232kbIncorect0
20ms232kbOK10
30ms232kbIncorect0
40ms236kbIncorect0
50ms232kbIncorect0
60ms232kbIncorect0
70ms232kbIncorect0
80ms232kbIncorect0
90ms236kbIncorect0
100ms228kbIncorect0
Punctaj total10

Ceva nu functioneaza?