Borderou de evaluare (job #1220772)

Utilizator patrick_vladPatrick Vlad patrick_vlad Data 18 august 2014 15:48:57
Problema A+B Status done
Runda Lista lui wefgef Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c: In function ‘main’: user.c:6:5: error: incompatible types when assigning to type ‘FILE’ from type ‘struct FILE *’ f2 = fopen ("adunare.out","w"); ^ user.c:9:2: error: incompatible type for argument 1 of ‘fprintf’ fprintf(f2,"%d\n", a+b); ^ 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 ‘FILE’ fprintf (FILE *__restrict __stream, __const char *__restrict __fmt, ...) ^ user.c:12:2: error: incompatible type for argument 1 of ‘fclose’ fclose(f2); ^ 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); ^ user.c:7:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf (f1, "%d", &a); ^ user.c:8:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf (f1, "%d", &b); ^

Ceva nu functioneaza?