Borderou de evaluare (job #2336192)

Utilizator piciulseretan cristian piciul Data 4 februarie 2019 21:19:00
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:7: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] fis1 = fopen("cautbin.in", "r"); ^ main.c:125:7: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] fis2 = fopen("cautbin.out", "w"); ^ main.c:127:2: warning: implicit declaration of function 'fscanf_s' [-Wimplicit-function-declaration] fscanf_s(fis1,"%d", &n); ^~~~~~~~ main.c:139:13: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] fprintf (fis2,"%d", cautareBinara1(vector, 0, n - 1, x, n)); ^~~~ In file included from /usr/include/stdio.h:936:0, from main.c:1: /usr/include/x86_64-linux-gnu/bits/stdio2.h:95:1: note: expected 'FILE * restrict {aka struct _IO_FILE * restrict}' but argument is of type 'int *' fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) ^~~~~~~ main.c:145:13: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] fprintf(fis2, "%d", cautareBinara2(vector, 0, n - 1, x, n)); ^~~~ In file included from /usr/include/stdio.h:936:0, from main.c:1: /usr/include/x86_64-linux-gnu/bits/stdio2.h:95:1: note: expected 'FILE * restrict {aka struct _IO_FILE * restrict}' but argument is of type 'int *' fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) ^~~~~~~ main.c:149:13: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] fprintf(fis2, "%d", cautareBinara3(vector, 0, n - 1, x, n)); ^~~~ In file included from /usr/include/stdio.h:936:0, from main.c:1: /usr/include/x86_64-linux-gnu/bits/stdio2.h:95:1: note: expected 'FILE * restrict {aka struct _IO_FILE * restrict}' but argument is of type 'int *' fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) ^~~~~~~ main.c:152:11: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] fprintf(fis2, "\n"); ^~~~ In file included from /usr/include/stdio.h:936:0, from main.c:1: /usr/include/x86_64-linux-gnu/bits/stdio2.h:95:1: note: expected 'FILE * restrict {aka struct _IO_FILE * restrict}' but argument is of type 'int *' fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) ^~~~~~~ main.c:154:9: warning: passing argument 1 of 'fclose' from incompatible pointer type [-Wincompatible-pointer-types] fclose(fis1); ^~~~ In file included from main.c:1:0: /usr/include/stdio.h:237:12: note: expected 'FILE * {aka struct _IO_FILE *}' but argument is of type 'int *' extern int fclose (FILE *__stream); ^~~~~~ main.c:155:9: warning: passing argument 1 of 'fclose' from incompatible pointer type [-Wincompatible-pointer-types] Non zero exit status: 1

Ceva nu functioneaza?