Borderou de evaluare (job #2335383)

Utilizator qazwSilviu Dumitru qazw Data 3 februarie 2019 23:30:04
Problema Perle Status done
Runda Arhiva de probleme Compilator c-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:14:10: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] fscanf("%d", &z); ^~~~ 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 'char *' extern int __REDIRECT (fscanf, (FILE *__restrict __stream, ^ main.c:14:16: warning: passing argument 2 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] fscanf("%d", &z); ^ 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 'const char * restrict' but argument is of type 'int *' extern int __REDIRECT (fscanf, (FILE *__restrict __stream, ^ main.c:14:16: warning: format not a string literal and no format arguments [-Wformat-security] fscanf("%d", &z); ^~ main.c:16:16: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] fscanf("%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 'char *' extern int __REDIRECT (fscanf, (FILE *__restrict __stream, ^ main.c:16:22: warning: passing argument 2 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] fscanf("%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 'const char * restrict' but argument is of type 'int *' extern int __REDIRECT (fscanf, (FILE *__restrict __stream, ^ main.c:16:22: warning: format not a string literal and no format arguments [-Wformat-security] fscanf("%d", &n); ^~ main.c:18:12: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] fscanf("%d", &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 'char *' Non zero exit status: 1

Ceva nu functioneaza?