Borderou de evaluare (job #772165)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Robot2 (clasa a 5-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 5 apr. 2024 11:04:04 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:10:41: error: 'nn' undeclared (first use in this function); did you mean 'nc'?
10 | fscanf(fin, "%d%d%d%d%d%d%d%d" ,&c,&nn,&h,&m,&s,&t,&v,&r);
| ^~
| nc
main.c:10:41: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:51: error: expected ')' before string constant
15 | fscanf(fin "%d" ,&n);
| ~ ^~~~~
| )
main.c:15:41: error: too few arguments to function 'fscanf'
15 | fscanf(fin "%d" ,&n);
| ^~~~~~
In file included from /usr/include/features.h:503,
from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from main.c:1:
/usr/include/stdio.h:460:12: note: declared here
460 | extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
| ^~~~~~~~~~
main.c:8:27: warning: variable 'ts' set but not used [-Wunused-but-set-variable]
8 | int c,n,h,m,s,t,v,r,i,ts,q,nc;
| ^~
main.c:7:17: warning: unused variable 'fout' [-Wunused-variable]
7 | FILE *fin, *fout;
| ^~~~