Borderou de evaluare (job #3369279)
| Utilizator | Data | 19 octombrie 2026 10:00:20 | |
|---|---|---|---|
| Problema | Aria | Status | done |
| Runda | Arhiva educationala | Compilator | c-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.c:4:1: warning: data definition has no type or storage class
4 | fin = fopen("aria.in", "r");
| ^~~
main.c:4:1: warning: type defaults to 'int' in declaration of 'fin' [-Wimplicit-int]
main.c:4:1: error: conflicting types for 'fin'; have 'int'
main.c:3:7: note: previous declaration of 'fin' with type 'FILE *'
3 | FILE *fin, *fout;
| ^~~
main.c:5:1: warning: data definition has no type or storage class
5 | fout = fopen("aria.out", "w");
| ^~~~
main.c:5:1: warning: type defaults to 'int' in declaration of 'fout' [-Wimplicit-int]
main.c:5:1: error: conflicting types for 'fout'; have 'int'
main.c:3:13: note: previous declaration of 'fout' with type 'FILE *'
3 | FILE *fin, *fout;
| ^~~~
main.c: In function 'main':
main.c:9:12: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types]
9 | fscanf("%d %d %d", &n, &x0, &y0);
| ^~~~~~~~~~
| |
| 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:9:24: warning: passing argument 2 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types]
9 | fscanf("%d %d %d", &n, &x0, &y0);
| ^~
| |
| 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:12:16: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types]
12 | fscanf("%d %d", &xurm, &yurm);
| ^~~~~~~
| |
| char *
/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:12:25: warning: passing argument 2 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types]
12 | fscanf("%d %d", &xurm, &yurm);
| ^~~~~
| |
| int *
/usr/include/stdio.h:416:43: note: expected 'const char * restrict' but argument is of type 'int *'
416 | const char *__restrict __format, ...) __wur;
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
