Borderou de evaluare (job #1484763)

Utilizator mike93Indricean Mihai mike93 Data 11 septembrie 2015 20:12:12
Problema Jocul NIM Status done
Runda Arhiva educationala Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c: In function ‘main’: user.c:4:2: error: invalid initializer FILE fin = fopen("nim.in", "r"); ^ user.c:6:2: error: incompatible type for argument 1 of ‘fscanf’ fscanf(fin, "%d\n", &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 ‘FILE’ extern int __REDIRECT (fscanf, (FILE *__restrict __stream, ^ user.c:11:3: error: incompatible type for argument 1 of ‘fscanf’ fscanf(fin, "%d\n", &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:449:12: note: expected ‘struct FILE * restrict’ but argument is of type ‘FILE’ extern int __REDIRECT (fscanf, (FILE *__restrict __stream, ^ user.c:15:4: error: incompatible type for argument 1 of ‘fscanf’ fscanf(fin, "%d ", &x); ^ 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 ‘FILE’ extern int __REDIRECT (fscanf, (FILE *__restrict __stream, ^ user.c:18:3: error: incompatible type for argument 1 of ‘fscanf’ fscanf(fin, "\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:449:12: note: expected ‘struct FILE * restrict’ but argument is of type ‘FILE’ extern int __REDIRECT (fscanf, (FILE *__restrict __stream, ^ user.c:26:2: error: incompatible type for argument 1 of ‘fclose’ fclose(fin); ^ In file included from user.c:1:0: /usr/include/stdio.h:238:12: note: expected ‘struct FILE *’ but argument is of type ‘FILE’ extern int fclose (FILE *__stream); ^

Ceva nu functioneaza?