Borderou de evaluare (job #810613)

Utilizator avatar AlexandraPaunescu Paunescu Alexandra AlexandraPaunescu IP ascuns
Problemă Minute (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 21 feb. 2025 19:35:23 Scor 50

Raport evaluator

Compilare: main.c: In function 'main': main.c:12:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 12 | fscanf (fin,"%d%d%d%d",&h1,&m1,&h2,&m2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:970, from main.c:1: In function 'fprintf', inlined from 'main' at main.c:143:5: /usr/include/bits/stdio2.h:111:10: warning: 'hout' may be used uninitialized [-Wmaybe-uninitialized] 111 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 112 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ main.c: In function 'main': main.c:9:21: note: 'hout' was declared here 9 | int h1,h2,m1,m2,hout,mout,i; | ^~~~ In function 'fprintf', inlined from 'main' at main.c:143:5: /usr/include/bits/stdio2.h:111:10: warning: 'mout' may be used uninitialized [-Wmaybe-uninitialized] 111 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 112 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ main.c: In function 'main': main.c:9:26: note: 'mout' was declared here 9 | int h1,h2,m1,m2,hout,mout,i; | ^~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb OK 10
2 1 ms 245 kb OK 10
3 1 ms 245 kb Incorect 0
4 1 ms 507 kb OK 10
5 1 ms 245 kb OK 10
6 1 ms 245 kb OK 10
7 1 ms 245 kb Incorect 0
8 1 ms 241 kb Incorect 0
9 1 ms 245 kb Incorect 0
10 1 ms 245 kb Incorect 0
Punctaj total 50