Borderou de evaluare (job #658856)

Utilizator avatar gangiul3000 Gangiul Carbune gangiul3000 IP ascuns
Problemă Brățara (clasele 5/6) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 25 aug. 2022 11:22:36 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:89:21: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 89 | fprintf("-1"); | ^~~~ | | | char * In file included from /usr/include/stdio.h:894, from main.c:1: /usr/include/bits/stdio2.h:103:27: note: expected 'FILE * restrict' but argument is of type 'char *' 103 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:89:13: error: too few arguments to function 'fprintf' 89 | fprintf("-1"); | ^~~~~~~ In file included from /usr/include/stdio.h:894, from main.c:1: /usr/include/bits/stdio2.h:103:1: note: declared here 103 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ^~~~~~~ main.c:21:48: warning: unused variable 'copieIdk' [-Wunused-variable] 21 | int n, i, bratari, c, f, cop, st, dr, max, copieIdk; | ^~~~~~~~ main.c:21:43: warning: unused variable 'max' [-Wunused-variable] 21 | int n, i, bratari, c, f, cop, st, dr, max, copieIdk; | ^~~ main.c:21:39: warning: unused variable 'dr' [-Wunused-variable] 21 | int n, i, bratari, c, f, cop, st, dr, max, copieIdk; | ^~ main.c:21:35: warning: unused variable 'st' [-Wunused-variable] 21 | int n, i, bratari, c, f, cop, st, dr, max, copieIdk; | ^~ main.c:26:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 26 | fscanf( fin, "%d%d", &c, &n ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:30:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 30 | fscanf( fin, "%d", &v[i] ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:52:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 52 | fscanf(fin, "%d", &v[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~