Borderou de evaluare (job #779463)

Utilizator avatar TudorMit Mituca Tudor-Ionut TudorMit IP ascuns
Problemă Portofel (clasa a 5-a) Compilator c-32
Rundă Tema 44 Clasa a 5-a Status evaluat
Dată 4 iun. 2024 20:42:19 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:33:13: error: 'j' undeclared (first use in this function) 33 | j=0; | ^ main.c:33:13: note: each undeclared identifier is reported only once for each function it appears in main.c:38:17: error: 'cnt' undeclared (first use in this function); did you mean 'int'? 38 | cnt++; | ^~~ | int main.c:45:20: error: expected ';' before 'else' 45 | x++ | ^ | ; 46 | else | ~~~~ main.c:56:1: error: expected declaration or statement at end of input 56 | } | ^ main.c:8:29: warning: unused variable 'consec' [-Wunused-variable] 8 | long long i,n,m,a,max=0,consec=0,x=0,y=0,z=0; | ^~~~~~ main.c:10:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 10 | fscanf(fin,"%lld",&n); | ^~~~~~~~~~~~~~~~~~~~~ main.c:12:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 12 | fscanf(fin,"%lld",&a); | ^~~~~~~~~~~~~~~~~~~~~ main.c:16:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 16 | fscanf(fin,"%lld",&m); | ^~~~~~~~~~~~~~~~~~~~~ main.c:18:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 18 | fscanf(fin,"%lld",&a); | ^~~~~~~~~~~~~~~~~~~~~