Borderou de evaluare (job #624219)

Utilizator avatar PetruApostol Petru Apostol PetruApostol IP ascuns
Problemă Adunare Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 8 ian. 2022 10:46:37 Scor 0

Raport evaluator

Compilare: main.c: In function 'main': main.c:9:12: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 9 | fscanf("%d%d",&a,&b); | ^~~~~~ | | | char * In file included from main.c:1: /usr/include/stdio.h:391:37: note: expected 'FILE * restrict' but argument is of type 'char *' 391 | extern int fscanf (FILE *__restrict __stream, | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:9:19: warning: passing argument 2 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 9 | fscanf("%d%d",&a,&b); | ^~ | | | int * In file included from main.c:1: /usr/include/stdio.h:392:43: note: expected 'const char * restrict' but argument is of type 'int *' 392 | const char *__restrict __format, ...) __wur; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:9:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 9 | fscanf("%d%d",&a,&b); | ^~~~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 114 kb Incorect 0
2 1 ms 114 kb Incorect 0
Punctaj total 0