Borderou de evaluare (job #808376)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Șenila (clasa a 6-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 9 feb. 2025 15:45:49 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:12:18: error: conflicting types for 's'; have 'unsigned int'
12 | unsigned int s;
| ^
main.c:11:9: note: previous declaration of 's' with type 'int'
11 | int s,z,k,a,m,n,lin,col,r,i,j,poz,t;
| ^
main.c:51:9: error: 'l' undeclared (first use in this function)
51 | lin=l-1;
| ^
main.c:51:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:52:9: error: 'c' undeclared (first use in this function)
52 | col=c-1;
| ^
main.c:55:10: error: subscripted value is neither array nor pointer nor vector
55 | m[lin][col]=s;
| ^
main.c:76:33: error: subscripted value is neither array nor pointer nor vector
76 | fprintf(fout,"%d ",m[i][j]);
| ^
main.c:11:35: warning: unused variable 'poz' [-Wunused-variable]
11 | int s,z,k,a,m,n,lin,col,r,i,j,poz,t;
| ^~~
main.c:14:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
14 | fscanf(fin,"%d%d%d%d",&s,&z,&k,&a);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:15:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
15 | fscanf(fin,"%d%d%d%d%d",&m,&n,&lin,&col,&r);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~