Borderou de evaluare (job #657718)

Utilizator avatar andreiabd andrei andreiabd IP ascuns
Problemă Nrdif (clasele 5-6) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 13 aug. 2022 16:58:14 Scor 0

Raport evaluator

Compilare: main.c: In function 'main': main.c:7:23: warning: unused variable 'cnt' [-Wunused-variable] 7 | int a, i = 0, n , cnt = 0 , dif = 0 , d , max = 0 | ^~~ 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" , &a); | ^~~~~~~~~~~~~~~~~~~~~~~ main.c:18:17: warning: iteration 99999 invokes undefined behavior [-Waggressive-loop-optimizations] 18 | if(v[a] > 0){ | ~^~~ main.c:17:17: note: within this loop 17 | for(a = 1;a <= 999999;a++){ | ~~^~~~~~~~~ main.c:19:21: warning: 'd' may be used uninitialized in this function [-Wmaybe-uninitialized] 19 | dif = a - d; | ~~~~^~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 118 kb Killed by Signal 11 0
2 1 ms 118 kb Killed by Signal 11 0
3 1 ms 118 kb Killed by Signal 11 0
4 1 ms 118 kb Killed by Signal 11 0
5 1 ms 118 kb Killed by Signal 11 0
6 1 ms 118 kb Killed by Signal 11 0
7 1 ms 118 kb Killed by Signal 11 0
8 1 ms 118 kb Killed by Signal 11 0
9 1 ms 118 kb Killed by Signal 11 0
10 1 ms 118 kb Killed by Signal 11 0
Punctaj total 0