Borderou de evaluare (job #760843)

Utilizator avatar TudorMit Mituca Tudor-Ionut TudorMit IP ascuns
Problemă Concurs3 (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 7 feb. 2024 21:01:24 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:18:24: error: lvalue required as left operand of assignment 18 | if(b%10=0){ | ^ main.c:32:17: error: subscripted value is neither array nor pointer nor vector 32 | if(a[i]==max) | ^ main.c:42:24: error: lvalue required as left operand of assignment 42 | if(b%10=0){ | ^ main.c:74:21: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 74 | fprintf("FARA CAMPION") | ^~~~~~~~~~~~~~ | | | char * In file included from /usr/include/stdio.h:906, from main.c:1: /usr/include/bits/stdio2.h:77:27: note: expected 'FILE * restrict' but argument is of type 'char *' 77 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:74:13: error: too few arguments to function 'fprintf' 74 | fprintf("FARA CAMPION") | ^~~~~~~ /usr/include/bits/stdio2.h:77:1: note: declared here 77 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ^~~~~~~ main.c:74:36: error: expected ';' before '}' token 74 | fprintf("FARA CAMPION") | ^ | ; 75 | } | ~ main.c:11:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 11 | fscanf(fin,"%d%d",&c,&n); | ^~~~~~~~~~~~~~~~~~~~~~~~ main.c:15:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 15 | fscanf(fin,"%d%d",&a,&b); | ^~~~~~~~~~~~~~~~~~~~~~~~ main.c:39:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 39 | fscanf(fin,"%d%d",&a,&b); | ^~~~~~~~~~~~~~~~~~~~~~~~