Borderou de evaluare (job #786198)

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:32:17 Scor 0

Raport evaluator

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: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 | ^~~~~~~~~~~~~~~~~~~~~ main.c:45:5: warning: pointer 'fout' used after 'fclose' [-Wuse-after-free] 45 | printf( fout,"%d", finaly); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:43:3: note: call to 'fclose' here 43 | fclose( fout ); | ^~~~~~~~~~~~~~ In function 'printf', inlined from 'main' at main.c:45:5: /usr/include/bits/stdio2.h:86:10: warning: pointer 'fout' used after 'fclose' [-Wuse-after-free] 86 | return __printf_chk (__USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack ()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c: In function 'main': main.c:43:3: note: call to 'fclose' here 43 | fclose( fout ); | ^~~~~~~~~~~~~~
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 249 kb Incorect 0
5 1 ms 249 kb Incorect 0
6 1 ms 249 kb Incorect 0
7 1 ms 512 kb Incorect 0
8 1 ms 512 kb Incorect 0
9 1 ms 249 kb Incorect 0
10 1 ms 249 kb Incorect 0
Punctaj total 0