Borderou de evaluare (job #781609)

Utilizator avatar RaMiDra Dragulescu Rares Mihai RaMiDra IP ascuns
Problemă Căutare binară Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 8 iul. 2024 16:13:36 Scor 10

Raport evaluator

Compilare: main.c: In function 'main': main.c:42:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 42 | if(v[mijloc]=x&&poz!=1){ | ^ main.c:71:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 71 | if(v[mijloc]=x&&b==0){ | ^ main.c:12:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 12 | fscanf(fin, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~~ main.c:16:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 16 | fscanf(fin, "%d", &a); | ^~~~~~~~~~~~~~~~~~~~~ main.c:20:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 20 | fscanf(fin, "%d", &m); | ^~~~~~~~~~~~~~~~~~~~~ main.c:28:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 28 | fscanf(fin, "%d%d", &l, &x); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:71:25: warning: 'mijloc' may be used uninitialized [-Wmaybe-uninitialized] 71 | if(v[mijloc]=x&&b==0){ | ~~~~~~~~~^~~~~~~~ main.c:9:44: note: 'mijloc' was declared here 9 | int n, m, x, i, a, stanga, dreapta, l, mijloc, poz, b; | ^~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb OK 10
2 1 ms 245 kb Incorect 0
3 1 ms 245 kb Incorect 0
4 1 ms 249 kb Incorect 0
5 29 ms 245 kb Incorect 0
6 99 ms 507 kb Incorect 0
7 169 ms 512 kb Incorect 0
8 169 ms 507 kb Incorect 0
9 169 ms 512 kb Incorect 0
10 189 ms 512 kb Incorect 0
Punctaj total 10