Borderou de evaluare (job #761643)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Piramide (clasa a 5-a) | Compilator | c-32 |
Rundă | Concurs 03 | IQ Academy | clasa a 5-a | Status | evaluat |
Dată | 11 feb. 2024 13:21:14 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:14:17: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types]
14 | fscanf ("%d", &c);
| ^~~~
| |
| char *
In file included from main.c:1:
/usr/include/stdio.h:415:37: note: expected 'FILE * restrict' but argument is of type 'char *'
415 | extern int fscanf (FILE *__restrict __stream,
| ~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:14:23: warning: passing argument 2 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types]
14 | fscanf ("%d", &c);
| ^~
| |
| int *
/usr/include/stdio.h:416:43: note: expected 'const char * restrict' but argument is of type 'int *'
416 | const char *__restrict __format, ...) __wur;
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:26:26: error: expected expression before ')' token
26 | fprintf (fout, "%d", );
| ^
main.c:10:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | fscanf (fin, "%d%d%d", &n, &x, &k);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:14:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
14 | fscanf ("%d", &c);
| ^~~~~~~~~~~~~~~~~