Borderou de evaluare (job #700922)

Utilizator avatar haiducii Haiducii haiducii IP ascuns
Problemă Fgetc (clasa a 5-a) Compilator c-32
Rundă superoji1 Status evaluat
Dată 5 mar. 2023 11:34:58 Scor 0

Raport evaluator

Eroare de compilare: main.c:3:14: error: expected declaration specifiers or '...' before string constant 3 | FILE* fscanf("fgtec.in"); | ^~~~~~~~~~ main.c:4:15: error: expected declaration specifiers or '...' before string constant 4 | FILE* fprintf("fgtec.out"); | ^~~~~~~~~~~ main.c: In function 'main': main.c:8:12: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 8 | fscanf("%lld",&n); | ^~~~~~ | | | 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:8:19: warning: passing argument 2 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 8 | fscanf("%lld",&n); | ^~ | | | long long int * In file included from main.c:1: /usr/include/stdio.h:416:43: note: expected 'const char * restrict' but argument is of type 'long long int *' 416 | const char *__restrict __format, ...) __wur; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:9:13: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 9 | fprintf("%lld",n); | ^~~~~~ | | | char * In file included from /usr/include/stdio.h:906, from main.c:1: /usr/include/bits/stdio2.h:77:27: note: expected 'FILE * restrict' but argument is of type 'char *' 77 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:9:20: warning: passing argument 2 of 'fprintf' makes pointer from integer without a cast [-Wint-conversion] 9 | fprintf("%lld",n); | ^ | | | long long int In file included from /usr/include/stdio.h:906, from main.c:1: /usr/include/bits/stdio2.h:77:60: note: expected 'const char * restrict' but argument is of type 'long long int' 77 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ main.c:8:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 8 | fscanf("%lld",&n); | ^~~~~~~~~~~~~~~~~