Borderou de evaluare (job #105523)

Utilizator avatar isa_adela4 Sarbu Adela isa_adela4 IP ascuns
Problemă Cale ferată (clasa a 6-a) Compilator c
Rundă Olimpiada pe școală clasa a 6-a Status evaluat
Dată 15 ian. 2015 13:12:17 Scor 0

Raport evaluator

Eroare de compilare: user.c: In function ‘main’: user.c:9:33: error: invalid operands to binary & (have ‘int *’ and ‘int’) user.c:10:33: error: invalid operands to binary & (have ‘int *’ and ‘int’) user.c:11:5: error: ‘z’ undeclared (first use in this function) user.c:11:5: note: each undeclared identifier is reported only once for each function it appears in user.c:17:35: error: invalid operands to binary & (have ‘int *’ and ‘int’) user.c:17:5: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type [enabled by default] /usr/include/stdio.h:449:12: note: expected ‘struct FILE * __restrict__’ but argument is of type ‘int (*)(struct FILE *)’ user.c:18:36: error: invalid operands to binary & (have ‘int *’ and ‘int’) user.c:18:5: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type [enabled by default] /usr/include/stdio.h:449:12: note: expected ‘struct FILE * __restrict__’ but argument is of type ‘int (*)(struct FILE *)’ user.c:19:5: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type [enabled by default] /usr/include/stdio.h:449:12: note: expected ‘struct FILE * __restrict__’ but argument is of type ‘int (*)(struct FILE *)’ user.c:14:16: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] user.c:19:12: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]