Borderou de evaluare (job #781561)

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 14:47:58 Scor 0

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){ | ^ main.c:65:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 65 | if(v[mijloc]=x){ | ^ 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:27:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 27 | fscanf(fin, "%d%d", &l, &x); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:42:25: warning: 'mijloc' may be used uninitialized [-Wmaybe-uninitialized] 42 | if(v[mijloc]=x){ | ~~~~~~~~~^~ 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 Incorect 0
2 1 ms 241 kb Incorect 0
3 1 ms 245 kb Incorect 0
4 9 ms 233 kb Incorect 0
5 39 ms 143 kb Incorect 0
6 119 ms 495 kb Incorect 0
7 188 ms 655 kb Incorect 0
8 189 ms 647 kb Incorect 0
9 189 ms 905 kb Incorect 0
10 189 ms 659 kb Incorect 0
Punctaj total 0