Borderou de evaluare (job #604702)

Utilizator avatar dragusanu.rares Dragusanu Rares dragusanu.rares IP ascuns
Problemă Accesibil (clasa a 6-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 25 aug. 2021 18:28:25 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:15:17: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 15 | fprintf("gresit"); | ^~~~~~~~ | | | 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:15:9: error: too few arguments to function 'fprintf' 15 | fprintf("gresit"); | ^~~~~~~ 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:6:77: warning: unused variable 'nrcif' [-Wunused-variable] 6 | int a,c,ca,cnt=0,ok,i,k,max1=0,n,max2=0,max3=0,maxnr=0,minnr=2100000000,nrcif=0,cnti=0,cntp=0; | ^~~~~ main.c:6:60: warning: unused variable 'minnr' [-Wunused-variable] 6 | int a,c,ca,cnt=0,ok,i,k,max1=0,n,max2=0,max3=0,maxnr=0,minnr=2100000000,nrcif=0,cnti=0,cntp=0; | ^~~~~ main.c:6:52: warning: unused variable 'maxnr' [-Wunused-variable] 6 | int a,c,ca,cnt=0,ok,i,k,max1=0,n,max2=0,max3=0,maxnr=0,minnr=2100000000,nrcif=0,cnti=0,cntp=0; | ^~~~~ main.c:11:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 11 | fscanf (fisier1,"%d",&c); | ^~~~~~~~~~~~~~~~~~~~~~~~ main.c:12:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 12 | fscanf (fisier1,"%d %d",&k,&n); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:18:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 18 | fscanf (fisier1,"%d",&a); | ^~~~~~~~~~~~~~~~~~~~~~~~ main.c:53:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 53 | fscanf (fisier1,"%d",&a); | ^~~~~~~~~~~~~~~~~~~~~~~~ main.c:87:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 87 | fscanf (fisier1,"%d",&a); | ^~~~~~~~~~~~~~~~~~~~~~~~ main.c:99:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 99 | fscanf (fisier1,"%d",&a); | ^~~~~~~~~~~~~~~~~~~~~~~~