Borderou de evaluare (job #609744)

Utilizator avatar andreifilimon Popescu Filimon Andrei Cosmin andreifilimon IP ascuns
Problemă Bile 2 (clasa a 6-a) Compilator c-32
Rundă Tema 3 clasa a 7-a Status evaluat
Dată 12 oct. 2021 10:19:06 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:9:33: error: 'a' undeclared (first use in this function) 9 | fout=fopen("bile2.out","w");a | ^ main.c:9:33: note: each undeclared identifier is reported only once for each function it appears in main.c:9:34: error: expected ';' before 'int' 9 | fout=fopen("bile2.out","w");a | ^ | ; 10 | int n,i,j,poz=0; | ~~~ main.c:11:22: error: 'n' undeclared (first use in this function) 11 | fscanf(fin,"%d",&n); | ^ main.c:12:9: error: 'i' undeclared (first use in this function) 12 | for(i=0; i<n; i++) fscanf(fin,"%d",&v[i]); | ^ main.c:14:5: error: 'j' undeclared (first use in this function) 14 | j=0; | ^ main.c:17:21: error: 'poz' undeclared (first use in this function) 17 | if(v[j]!=v1[poz]) fprintf(fout,"I"),v3[j]=v[j],v[j]=-1; | ^~~ main.c:17:55: warning: left-hand operand of comma expression has no effect [-Wunused-value] 17 | if(v[j]!=v1[poz]) fprintf(fout,"I"),v3[j]=v[j],v[j]=-1; | ^ main.c:47:75: warning: left-hand operand of comma expression has no effect [-Wunused-value] 47 | if(v[j]!=v1[poz] && v[j]!=-1) fprintf(fout,"I"),v3[j]=v[j],v[j]=-1; | ^