Borderou de evaluare (job #652032)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Forus (clasa a 5-a) | Compilator | c-32 |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 4 iun. 2022 09:52:32 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'nrcif':
main.c:27:14: warning: variable 'c' set but not used [-Wunused-but-set-variable]
27 | int ap=0,c;
| ^
main.c: In function 'main':
main.c:42:32: error: expected ';' before 'for'
42 | fscanf(fin, "%d%d", &c, &n)
| ^
| ;
43 | for (i=0; i<n; i++)
| ~~~
main.c:39:38: warning: unused variable 'C' [-Wunused-variable]
39 | int i,n,x,c,ap=0,cx=0,nrc=0,nr=0,C;
| ^
main.c:39:33: warning: unused variable 'nr' [-Wunused-variable]
39 | int i,n,x,c,ap=0,cx=0,nrc=0,nr=0,C;
| ^~
main.c:39:27: warning: unused variable 'nrc' [-Wunused-variable]
39 | int i,n,x,c,ap=0,cx=0,nrc=0,nr=0,C;
| ^~~
main.c:39:22: warning: unused variable 'cx' [-Wunused-variable]
39 | int i,n,x,c,ap=0,cx=0,nrc=0,nr=0,C;
| ^~
main.c:39:17: warning: unused variable 'ap' [-Wunused-variable]
39 | int i,n,x,c,ap=0,cx=0,nrc=0,nr=0,C;
| ^~
main.c:39:13: warning: unused variable 'x' [-Wunused-variable]
39 | int i,n,x,c,ap=0,cx=0,nrc=0,nr=0,C;
| ^
main.c:39:9: warning: unused variable 'i' [-Wunused-variable]
39 | int i,n,x,c,ap=0,cx=0,nrc=0,nr=0,C;
| ^
main.c:42:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
42 | fscanf(fin, "%d%d", &c, &n)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~