Borderou de evaluare (job #786197)

Utilizator avatar MATste_08 Stefan Matei Necsulescu MATste_08 IP ascuns
Problemă Monsters (clasa a 6-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 14 sept. 2024 18:31:40 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:9:11: warning: passing argument 1 of 'scanf' from incompatible pointer type [-Wincompatible-pointer-types] 9 | scanf(fin,"%lld", &n);///citim n | ^~~ | | | FILE * In file included from main.c:1: /usr/include/stdio.h:428:42: note: expected 'const char * restrict' but argument is of type 'FILE *' 428 | extern int scanf (const char *__restrict __format, ...) __wur; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:16:5: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 16 | else | ^~~~ main.c:19:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 19 | n=n/10;} | ^ main.c:37:9: error: 'remainder' undeclared (first use in this function) 37 | remainder = b % 10; | ^~~~~~~~~ main.c:37:9: note: each undeclared identifier is reported only once for each function it appears in main.c:45:13: warning: passing argument 1 of 'printf' from incompatible pointer type [-Wincompatible-pointer-types] 45 | printf( fout,"%d", finaly); | ^~~~ | | | FILE * In file included from /usr/include/stdio.h:980: /usr/include/bits/stdio2.h:84:32: note: expected 'const char * restrict' but argument is of type 'FILE *' 84 | printf (const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ main.c:9:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 9 | scanf(fin,"%lld", &n);///citim n | ^~~~~~~~~~~~~~~~~~~~~