Borderou de evaluare (job #2869217)
Utilizator | Data | 11 martie 2022 13:16:12 | |
---|---|---|---|
Problema | Transport | Status | done |
Runda | Arhiva de probleme | Compilator | c-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:123:12: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types]
123 | fscanf("transport.in");
| ^~~~~~~~~~~~~~
| |
| char *
In file included from main.c:1:
/usr/include/stdio.h:391:37: note: expected 'FILE * restrict' but argument is of type 'char *'
391 | extern int fscanf (FILE *__restrict __stream,
| ~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:123:5: error: too few arguments to function 'fscanf'
123 | fscanf("transport.in");
| ^~~~~~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from main.c:1:
/usr/include/stdio.h:407:12: note: declared here
407 | extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
| ^~~~~~~~~~
main.c:124:13: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types]
124 | fprintf("transport.out");
| ^~~~~~~~~~~~~~~
| |
| char *
In file included from main.c:1:
/usr/include/stdio.h:326:38: note: expected 'FILE * restrict' but argument is of type 'char *'
326 | extern int fprintf (FILE *__restrict __stream,
| ~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:124:5: error: too few arguments to function 'fprintf'
124 | fprintf("transport.out");
| ^~~~~~~
In file included from main.c:1:
/usr/include/stdio.h:326:12: note: declared here
326 | extern int fprintf (FILE *__restrict __stream,
| ^~~~~~~
main.c: In function 'cautareBinara':
main.c:117:1: warning: control reaches end of non-void function [-Wreturn-type]
117 | }
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !