Borderou de evaluare (job #798763)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Îngerași (clasa a 5-a) | Compilator | c-32 |
Rundă | Concurs 02 | IQ Academy | clasa a 5-a | Status | evaluat |
Dată | 3 dec. 2024 18:42:12 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:6:15: error: too few arguments to function 'fopen'
6 | FILE *fin = fopen ("ingerasi.in" "r" );
| ^~~~~
In file included from main.c:1:
/usr/include/stdio.h:264:14: note: declared here
264 | extern FILE *fopen (const char *__restrict __filename,
| ^~~~~
main.c:7:3: error: implicit declaration of function 'FSCANF' [-Wimplicit-function-declaration]
7 | FSCANF (fin , "%d",&n ) ;
| ^~~~~~
main.c:9:27: error: request for member 'curent' in something not a structure or union
9 | fscanf (fin, "%d" , &min.curent);//prima clipire
| ^
main.c:13:13: error: 'toateegal' undeclared (first use in this function); did you mean 'toateegale'?
13 | toateegal = 0;
| ^~~~~~~~~
| toateegale
main.c:13:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:12: error: 'current' undeclared (first use in this function); did you mean 'curent'?
15 | if (current < min) {
| ^~~~~~~
| curent
main.c:21:24: error: 'ingerasi' undeclared (first use in this function)
21 | FILE * fout = fopen (ingerasi.out) ;
| ^~~~~~~~
main.c:21:17: error: too few arguments to function 'fopen'
21 | FILE * fout = fopen (ingerasi.out) ;
| ^~~~~
/usr/include/stdio.h:264:14: note: declared here
264 | extern FILE *fopen (const char *__restrict __filename,
| ^~~~~
main.c:5:26: warning: variable 'toateegale' set but not used [-Wunused-but-set-variable]
5 | int n, i, min,curent, toateegale;
| ^~~~~~~~~~
main.c:5:11: warning: unused variable 'i' [-Wunused-variable]
5 | int n, i, min,curent, toateegale;
| ^