Borderou de evaluare (job #2702528)
Utilizator | Data | 4 februarie 2021 13:36:21 | |
---|---|---|---|
Problema | CMMDC | 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:26:35: warning: format '%d' expects a matching 'int' argument [-Wformat=]
fprintf(outFile, printf("%d"), 0 );
^
main.c:26:26: warning: passing argument 2 of 'fprintf' makes pointer from integer without a cast [-Wint-conversion]
fprintf(outFile, printf("%d"), 0 );
^~~~~~
In file included from /usr/include/stdio.h:936:0,
from main.c:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:95:1: note: expected 'const char * restrict' but argument is of type 'int'
fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...)
^~~~~~~
main.c:30:27: warning: passing argument 2 of 'fprintf' makes pointer from integer without a cast [-Wint-conversion]
fprintf (outFile, euclid(a, b) );
^~~~~~
In file included from /usr/include/stdio.h:936:0,
from main.c:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:95:1: note: expected 'const char * restrict' but argument is of type 'int'
fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...)
^~~~~~~
main.c:30:9: warning: format not a string literal and no format arguments [-Wformat-security]
fprintf (outFile, euclid(a, b) );
^~~~~~~
main.c:33:1: error: expected ';' before '}' token
}
^
main.c:21:5: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]
fscanf(infile, "%lld %lld", &a, &b);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !