Borderou de evaluare (job #800558)

Utilizator avatar Roby2206 Staicu Robert Roby2206 IP ascuns
Problemă Loto ( clasa a 6-a ) Compilator c-32
Rundă Christmas Gift Status evaluat
Dată 22 dec. 2024 10:16:04 Scor 0

Raport evaluator

Compilare: main.c: In function 'main': main.c:11:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 11 | fscanf(fin,"%d",&n); | ^~~~~~~~~~~~~~~~~~~ main.c:13:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 13 | fscanf(fin,"%d",&v[i]); | ^~~~~~~~~~~~~~~~~~~~~~ main.c:16:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 16 | fscanf(fin,"%d",&cur[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~ main.c:40:8: warning: 'g1' may be used uninitialized [-Wmaybe-uninitialized] 40 | aux=v[g1]; | ~~~^~~~~~ main.c:8:35: note: 'g1' was declared here 8 | int n,i,mn,mx,max=0,min=99999,g1,g2,j,aux,u,p; | ^~ main.c:54:14: warning: 'mx' may be used uninitialized [-Wmaybe-uninitialized] 54 | v[g2]=cur[mx]; | ~~~^~~~ main.c:8:16: note: 'mx' was declared here 8 | int n,i,mn,mx,max=0,min=99999,g1,g2,j,aux,u,p; | ^~ main.c:41:14: warning: 'mn' may be used uninitialized [-Wmaybe-uninitialized] 41 | v[g1]=cur[mn]; | ~~~^~~~ main.c:8:13: note: 'mn' was declared here 8 | int n,i,mn,mx,max=0,min=99999,g1,g2,j,aux,u,p; | ^~ main.c:49:76: warning: 'g2' may be used uninitialized [-Wmaybe-uninitialized] 49 | if(cur[mx]-v[i]==min && v[i]!=cur[mn] && v[i]!=-999999999 && v[i]>v[g2]){ | ~^~~~ main.c:8:38: note: 'g2' was declared here 8 | int n,i,mn,mx,max=0,min=99999,g1,g2,j,aux,u,p; | ^~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 2 ms 245 kb Incorect 0
2 1 ms 245 kb Incorect 0
3 1 ms 245 kb Incorect 0
4 1 ms 245 kb Incorect 0
5 1 ms 245 kb Incorect 0
6 1 ms 245 kb Incorect 0
7 1 ms 245 kb Incorect 0
8 1 ms 245 kb Incorect 0
9 1 ms 245 kb Incorect 0
10 1 ms 245 kb Incorect 0
Penalizare: 5% (pentru 1 submisie/ii) 5%
Punctaj total 0