Borderou de evaluare (job #2336199)

Utilizator piciulseretan cristian piciul Data 4 februarie 2019 21:27:53
Problema Cautare binara Status done
Runda smenuri Compilator c-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:124:9: warning: implicit declaration of function 'fopen_s' [-Wimplicit-function-declaration] fis1 = fopen_s(fis1,"cautbin.in", "r"); ^~~~~~~ main.c:124:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion] fis1 = fopen_s(fis1,"cautbin.in", "r"); ^ main.c:125:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion] fis2 = fopen_s(fis2,"cautbin.out", "w"); ^ main.c:127:9: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] fscanf(fis1, "%d", &n); ^~~~ In file included from /usr/include/features.h:367:0, from /usr/include/stdio.h:27, from main.c:1: /usr/include/stdio.h:443:12: note: expected 'FILE * restrict {aka struct _IO_FILE * restrict}' but argument is of type 'int *' extern int __REDIRECT (fscanf, (FILE *__restrict __stream, ^ main.c:131:10: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] fscanf(fis1, "%d", vector[index]); ^~~~ In file included from /usr/include/features.h:367:0, from /usr/include/stdio.h:27, from main.c:1: /usr/include/stdio.h:443:12: note: expected 'FILE * restrict {aka struct _IO_FILE * restrict}' but argument is of type 'int *' extern int __REDIRECT (fscanf, (FILE *__restrict __stream, ^ main.c:131:18: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=] fscanf(fis1, "%d", vector[index]); ^ main.c:133:9: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] fscanf(fis1, "%d", &m); ^~~~ In file included from /usr/include/features.h:367:0, from /usr/include/stdio.h:27, from main.c:1: /usr/include/stdio.h:443:12: note: expected 'FILE * restrict {aka struct _IO_FILE * restrict}' but argument is of type 'int *' extern int __REDIRECT (fscanf, (FILE *__restrict __stream, ^ main.c:136:10: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] fscanf(fis1, "%d%d", &mutare, &x); ^~~~ In file included from /usr/include/features.h:367:0, from /usr/include/stdio.h:27, from main.c:1: /usr/include/stdio.h:443:12: note: expected 'FILE * restrict {aka struct _IO_FILE * restrict}' but argument is of type 'int *' extern int __REDIRECT (fscanf, (FILE *__restrict __stream, ^ main.c:139:12: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] Non zero exit status: 1

Ceva nu functioneaza?