Borderou de evaluare (job #738538)

Utilizator avatar seby-the-kydo Nerdvana 8 Georgescu Sebastian seby-the-kydo IP ascuns
Problemă Onigim (clasa a 5-a) Compilator c-32
Rundă Tema 4 clasa a 7-a Status evaluat
Dată 16 oct. 2023 20:25:31 Scor 0

Raport evaluator

Compilare: main.c: In function 'main': main.c:22:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 22 | for(i = 0 ;i < k ;i ++); | ^~~ main.c:23:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 23 | fscanf(fin,"%d",&punctaje[i]); | ^~~~~~ main.c:40:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 40 | for(i = 1;i <= n;i++) | ^~~ main.c:42:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 42 | return 0; | ^~~~~~ main.c:21:3: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 21 | fscanf(fin,"%d%d",&n,&k); | ^~~~~~~~~~~~~~~~~~~~~~~~ main.c:23:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 23 | fscanf(fin,"%d",&punctaje[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:25:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 25 | fscanf(fin,"%d",&nr); | ^~~~~~~~~~~~~~~~~~~~ main.c:33:16: warning: 'maxnr' may be used uninitialized [-Wmaybe-uninitialized] 33 | for(i = 0;i <= maxnr; i++){ | ~~^~~~~~~~ main.c:18:13: note: 'maxnr' was declared here 18 | int n,k,j,maxnr,i,nr,poz; | ^~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 2 ms 118 kb Killed by Signal 11 0
2 1 ms 249 kb Killed by Signal 11 0
3 1 ms 249 kb Killed by Signal 11 0
4 1 ms 249 kb Killed by Signal 11 0
5 1 ms 249 kb Killed by Signal 11 0
6 1 ms 249 kb Killed by Signal 11 0
7 1 ms 249 kb Killed by Signal 11 0
8 1 ms 245 kb Killed by Signal 11 0
9 1 ms 249 kb Killed by Signal 11 0
10 2 ms 118 kb Killed by Signal 11 0
Punctaj total 0