Borderou de evaluare (job #605511)

Utilizator avatar Mihai_Ariton Mihai Ariton Mihai_Ariton IP ascuns
Problemă Fotbal3 (clasa a 6-a) Compilator c-32
Rundă Concurs cursuri de performanță | IQ Academy | clasa a 6-a Status evaluat
Dată 5 sept. 2021 13:59:20 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:137:21: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 137 | fprintf("nu se poate forma echipa"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from /usr/include/stdio.h:866, 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:137:13: error: too few arguments to function 'fprintf' 137 | fprintf("nu se poate forma echipa"); | ^~~~~~~ In file included from /usr/include/stdio.h:866, 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:15:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 15 | fscanf(fin, "%d", &z); | ^~~~~~~~~~~~~~~~~~~~~ main.c:18:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 18 | fscanf(fin, "%c", &k); | ^~~~~~~~~~~~~~~~~~~~~ main.c:19:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 19 | fscanf(fin, "%d%d%d", &f, &m, &a); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:20:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 20 | fscanf(fin, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~~ main.c:23:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 23 | fscanf(fin, "%c", &ch); | ^~~~~~~~~~~~~~~~~~~~~~ main.c:24:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 24 | fscanf(fin, "%d", &x); | ^~~~~~~~~~~~~~~~~~~~~ main.c:38:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 38 | fscanf(fin, "%c", &k); | ^~~~~~~~~~~~~~~~~~~~~ main.c:47:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 47 | fscanf(fin, "%d%d%d", &f, &m, &a); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:48:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 48 | fscanf(fin, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~~ main.c:51:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 51 | fscanf(fin, "%c", &ch); | ^~~~~~~~~~~~~~~~~~~~~~ main.c:52:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]