Borderou de evaluare (job #2702524)
Utilizator | Data | 4 februarie 2021 13:33:43 | |
---|---|---|---|
Problema | CMMDC | Status | done |
Runda | Arhiva de probleme | Compilator | c-32 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:30:26: warning: passing argument 2 of 'fprintf' makes pointer from integer without a cast [-Wint-conversion]
fprintf(outFile, printf("0") );
^~~~~~
In file included from /usr/include/stdio.h:936:0,
from main.c:1:
/usr/include/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, printf("0") );
^~~~~~~
main.c:34: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/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:34:9: warning: format not a string literal and no format arguments [-Wformat-security]
fprintf (outFile, euclid(a, b) );
^~~~~~~
main.c:37:1: error: expected ';' before '}' token
}
^
main.c:27:9: warning: unused variable 'c' [-Wunused-variable]
int c;
^
main.c:22:5: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]
fscanf(infile, "%lld", &a);
^~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:23:5: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]
fscanf(infile, "%lld", &b);
^~~~~~~~~~~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !