Borderou de evaluare (job #794939)

Utilizator avatar Luca_Grigore Luca Grigore Luca_Grigore IP ascuns
Problemă Ucif (clasa a 5-a) Compilator c-32
Rundă Tema 14 Clasa a 5-a Status evaluat
Dată 15 nov. 2024 10:43:33 Scor 0

Raport evaluator

Compilare: main.c: In function 'main': main.c:8:10: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 8 | fscanf("%d", &n); | ^~~~ | | | char * In file included from main.c:1: /usr/include/stdio.h:422:37: note: expected 'FILE * restrict' but argument is of type 'char *' 422 | extern int fscanf (FILE *__restrict __stream, | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:8:16: warning: passing argument 2 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 8 | fscanf("%d", &n); | ^~ | | | int * /usr/include/stdio.h:423:43: note: expected 'const char * restrict' but argument is of type 'int *' 423 | const char *__restrict __format, ...) __wur __nonnull ((1)); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:16:11: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 16 | fprintf("%d", &ucif); | ^~~~ | | | char * In file included from /usr/include/stdio.h:980: /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:16:17: warning: passing argument 2 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 16 | fprintf("%d", &ucif); | ^~~~~ | | | int * /usr/include/bits/stdio2.h:77:60: note: expected 'const char * restrict' but argument is of type 'int *' 77 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ main.c:8:3: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 8 | fscanf("%d", &n); | ^~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 249 kb Incorect 0
2 1 ms 249 kb Incorect 0
3 1 ms 249 kb Incorect 0
4 1 ms 270 kb Incorect 0
5 2 ms 249 kb Incorect 0
6 1 ms 249 kb Incorect 0
7 1 ms 249 kb Incorect 0
8 2 ms 249 kb Incorect 0
9 2 ms 245 kb Incorect 0
10 1 ms 249 kb Incorect 0
Punctaj total 0