Borderou de evaluare (job #543276)

Utilizator avatar wellrand123 Balaban Constantin wellrand123 IP ascuns
Problemă Patru (baraj gimnaziu) Compilator c
Rundă lasm_13_03_2020_cl_10_a Status evaluat
Dată 13 mar. 2020 20:25:08 Scor 0

Raport evaluator

Eroare de compilare: user.c: In function ‘put4’: user.c:7:5: error: ‘for’ loop initial declarations are only allowed in C99 mode user.c:7:5: note: use option -std=c99 or -std=gnu99 to compile your code user.c:8:9: error: ‘for’ loop initial declarations are only allowed in C99 mode user.c: In function ‘main’: user.c:18:1: warning: implicit declaration of function ‘fopne’ [-Wimplicit-function-declaration] user.c:18:5: warning: assignment makes pointer from integer without a cast [enabled by default] user.c:22:5: error: ‘for’ loop initial declarations are only allowed in C99 mode user.c:23:9: warning: passing argument 1 of ‘scanf’ from incompatible pointer type [enabled by default] /usr/include/stdio.h:452:12: note: expected ‘const char * __restrict__’ but argument is of type ‘struct FILE *’ user.c:27:13: error: redefinition of ‘i’ user.c:22:13: note: previous definition of ‘i’ was here user.c:27:5: error: ‘for’ loop initial declarations are only allowed in C99 mode user.c:29:9: error: ‘for’ loop initial declarations are only allowed in C99 mode user.c:20:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] user.c:21:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] user.c:23:14: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]