Borderou de evaluare (job #603283)

Utilizator avatar ghica_amalia Ghica Amalia ghica_amalia IP ascuns
Problemă Concurs (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 10 aug. 2021 15:09:20 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:10:12: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 10 | fscanf("%d%d" , &h, &n); | ^~~~~~ | | | 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:10:21: warning: passing argument 2 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 10 | fscanf("%d%d" , &h, &n); | ^~ | | | int * In file included from main.c:1: /usr/include/stdio.h:392:29: note: expected 'const char * restrict' but argument is of type 'int *' 392 | const char *__restrict __format, ...) __wur; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:12:14: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 12 | fscanf("%d" , &a); | ^~~~ | | | 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:12:21: warning: passing argument 2 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 12 | fscanf("%d" , &a); | ^~ | | | int * In file included from main.c:1: /usr/include/stdio.h:392:29: note: expected 'const char * restrict' but argument is of type 'int *' 392 | const char *__restrict __format, ...) __wur; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:17:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 17 | if(h == a) | ^~ main.c:19:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 19 | if(p == hp) | ^~ main.c:25:17: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 25 | fprintf("DA\n"); | ^~~~~~ | | | char * In file included from /usr/include/stdio.h:866, from main.c:1: