Borderou de evaluare (job #2702522)

Utilizator florinliviu09Florin Liviu Magadan florinliviu09 Data 4 februarie 2021 13:29:59
Problema CMMDC Status done
Runda Arhiva de probleme Compilator c-32 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:19:35: warning: format '%d' expects a matching 'int' argument [-Wformat=] fprintf(outFile, printf("%d"), 0 ); ^ main.c:19:26: warning: passing argument 2 of 'fprintf' makes pointer from integer without a cast [-Wint-conversion] fprintf(outFile, printf("%d"), 0 ); ^~~~~~ In file included from /usr/include/stdio.h:936:0, from main.c:1: /usr/include/bits/stdio2.h:95:1: note: expected 'const char * restrict' but argument is of type 'int' fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) ^~~~~~~ main.c:23:27: warning: passing argument 2 of 'fprintf' makes pointer from integer without a cast [-Wint-conversion] fprintf (outFile, euclid (a, b) ); ^~~~~~ In file included from /usr/include/stdio.h:936:0, from main.c:1: /usr/include/bits/stdio2.h:95:1: note: expected 'const char * restrict' but argument is of type 'int' fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) ^~~~~~~ main.c:23:9: warning: format not a string literal and no format arguments [-Wformat-security] fprintf (outFile, euclid (a, b) ); ^~~~~~~ main.c:26:1: error: expected ';' before '}' token } ^ main.c:16:9: warning: unused variable 'c' [-Wunused-variable] int c; ^ main.c:11:5: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(infile, "%lld", &a); ^~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:12:5: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(infile, "%lld", &b); ^~~~~~~~~~~~~~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?