Borderou de evaluare (job #679921)

Utilizator avatar Emre Isleam Emre Emre IP ascuns
Problemă Fotbal (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 5 dec. 2022 21:39:53 Scor 0

Raport evaluator

Compilare: main.c: In function 'main': main.c:15:12: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 15 | fscanf("%d",&j); | ^~~~ | | | 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:15:17: warning: passing argument 2 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 15 | fscanf("%d",&j); | ^~ | | | int * In file included from main.c:1: /usr/include/stdio.h:416:43: note: expected 'const char * restrict' but argument is of type 'int *' 416 | const char *__restrict __format, ...) __wur; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:21:15: warning: assignment to 'char' from 'int (*)(FILE *)' makes integer from pointer without a cast [-Wint-conversion] 21 | c = fgetc; | ^ main.c:23:11: warning: assignment to 'char' from 'int (*)(FILE *)' makes integer from pointer without a cast [-Wint-conversion] 23 | c = fgetc; | ^ main.c:15:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 15 | fscanf("%d",&j); | ^~~~~~~~~~~~~~~ main.c:20:19: warning: 's' may be used uninitialized in this function [-Wmaybe-uninitialized] 20 | s += c; | ~~^~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 114 kb Incorect 0
2 1 ms 114 kb Incorect 0
3 1 ms 114 kb Incorect 0
4 1 ms 114 kb Incorect 0
5 1 ms 114 kb Incorect 0
6 1 ms 114 kb Incorect 0
7 1 ms 114 kb Incorect 0
8 1 ms 114 kb Incorect 0
9 1 ms 110 kb Incorect 0
10 1 ms 114 kb Incorect 0
Punctaj total 0