Borderou de evaluare (job #1281138)
Utilizator | Data | 2 decembrie 2014 21:21:38 | |
---|---|---|---|
Problema | Transport | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘main’:
user.c:5:5: error: invalid initializer
FILE *fin=fopen("transport.in","r"),fout=fopen("transport.out","w");
^
user.c:52:5: error: incompatible type for argument 1 of ‘fprintf’
fprintf(fout,"%d",lm);
^
In file included from /usr/include/stdio.h:934:0,
from user.c:1:
/usr/include/i386-linux-gnu/bits/stdio2.h:96:1: note: expected ‘struct FILE * restrict’ but argument is of type ‘FILE’
fprintf (FILE *__restrict __stream, __const char *__restrict __fmt, ...)
^
user.c:9:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d%d",&n,&k);
^
user.c:12:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d",&v[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !