Borderou de evaluare (job #621195)

Utilizator avatar matei2 Matei Popescu Alexandru matei2 IP ascuns
Problemă Monotonă (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 16 dec. 2021 18:23:45 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:9:18: warning: too many arguments for format [-Wformat-extra-args] 9 | fscanf( fin, "%d",&n,&a); | ^~~~ main.c:10:5: error: 'cresc' undeclared (first use in this function) 10 | cresc=0; | ^~~~~ main.c:10:5: note: each undeclared identifier is reported only once for each function it appears in main.c:11:5: error: 'descresc' undeclared (first use in this function) 11 | descresc=0; | ^~~~~~~~ main.c:13:9: warning: implicit declaration of function 'fsccanf'; did you mean 'fscanf'? [-Wimplicit-function-declaration] 13 | fsccanf(fin, "%d",&b); | ^~~~~~~ | fscanf main.c:19:5: warning: implicit declaration of function 'fcloscse'; did you mean 'fclose'? [-Wimplicit-function-declaration] 19 | fcloscse (fin); | ^~~~~~~~ | fclose main.c:9:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 9 | fscanf( fin, "%d",&n,&a); | ^~~~~~~~~~~~~~~~~~~~~~~~