Borderou de evaluare (job #1400945)

Utilizator Costin.StanciuStanciu Costin Costin.Stanciu Data 25 martie 2015 16:09:14
Problema A+B Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c: In function ‘main’: user.c:9:17: error: invalid operands to binary & (have ‘char *’ and ‘int’) fscanf("f, %d" &a); ^ user.c:9:2: error: too few arguments to function ‘fscanf’ fscanf("f, %d" &a); ^ user.c:10:17: error: invalid operands to binary & (have ‘char *’ and ‘int’) fscanf("f, %d" &b); ^ user.c:10:2: error: too few arguments to function ‘fscanf’ fscanf("f, %d" &b); ^ user.c:11:18: error: expected ‘)’ before ‘a’ fprintf("g, %d" a+b); ^ user.c:11:18: warning: passing argument 1 of ‘fprintf’ from incompatible pointer type [enabled by default] 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 ‘char *’ fprintf (FILE *__restrict __stream, __const char *__restrict __fmt, ...) ^ user.c:11:18: error: too few arguments to function ‘fprintf’ fprintf("g, %d" a+b); ^ user.c:7:8: warning: unused variable ‘g’ [-Wunused-variable] FILE *g = fopen("adunare.out", "wt"); ^ user.c:6:8: warning: unused variable ‘f’ [-Wunused-variable] FILE *f = fopen("adunare.in", "rt"); ^

Ceva nu functioneaza?