Borderou de evaluare (job #742454)

Utilizator avatar Stefanu Stefan Ungureanu Stefanu IP ascuns
Problemă Mulţimi (clasa a 5-a) Compilator c-32
Rundă Tema 13 clasa a 5-a Status evaluat
Dată 4 nov. 2023 12:43:35 Scor 80

Raport evaluator

Compilare: main.c: In function 'main': main.c:23:9: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 23 | else | ^~~~ main.c:27:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 27 | return 0; | ^~~~~~ main.c:9:4: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 9 | fscanf( fin, "%d", &n ); | ^~~~~~~~~~~~~~~~~~~~~~~ main.c:10:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 10 | fscanf( fin," \n%d %d", &a, &b); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:14:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 14 | fscanf( fin, "\n%d %d", &a, &b); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:22:17: warning: pointer 'fin' may be used after 'fclose' [-Wuse-after-free] 22 | fprintf( fin, "multime vida"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:19:13: note: call to 'fclose' here 19 | fclose( fin ); | ^~~~~~~~~~~~~ In file included from /usr/include/stdio.h:906, from main.c:1: In function 'fprintf', inlined from 'main' at main.c:22:17: /usr/include/bits/stdio2.h:79:10: warning: pointer 'fin' may be used after 'fclose' [-Wuse-after-free] 79 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 80 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ main.c: In function 'main': main.c:19:13: note: call to 'fclose' here 19 | fclose( fin ); | ^~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb OK 10
2 2 ms 245 kb OK 10
3 1 ms 245 kb Incorect 0
4 1 ms 245 kb OK 10
5 1 ms 245 kb OK 10
6 1 ms 245 kb OK 10
7 1 ms 245 kb OK 10
8 9 ms 139 kb OK 10
9 9 ms 135 kb OK 10
10 1 ms 245 kb Incorect 0
Punctaj total 80