Borderou de evaluare (job #3363335)
| Utilizator | Data | 16 august 2026 16:24:33 | |
|---|---|---|---|
| Problema | Cautare binara | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int cb1(int)':
main.cpp:23:11: error: 'dr' was not declared in this scope; did you mean 'dr1'?
23 | while(dr-st>1)
| ^~
| dr1
main.cpp:23:14: error: 'st' was not declared in this scope; did you mean 'st1'?
23 | while(dr-st>1)
| ^~
| st1
main.cpp:25:9: error: 'mij' was not declared in this scope; did you mean 'mij1'?
25 | mij=(st+dr)/2;
| ^~~
| mij1
main.cpp:31:16: error: 'st' was not declared in this scope; did you mean 'st1'?
31 | return st;
| ^~
| st1
main.cpp:22:9: warning: unused variable 'st1' [-Wunused-variable]
22 | int st1=1,dr1=n+1,mij1;
| ^~~
main.cpp:22:15: warning: unused variable 'dr1' [-Wunused-variable]
22 | int st1=1,dr1=n+1,mij1;
| ^~~
main.cpp:22:23: warning: unused variable 'mij1' [-Wunused-variable]
22 | int st1=1,dr1=n+1,mij1;
| ^~~~
main.cpp: In function 'int cb2(int)':
main.cpp:36:11: error: 'dr' was not declared in this scope; did you mean 'dr2'?
36 | while(dr-st>1)
| ^~
| dr2
main.cpp:36:14: error: 'st' was not declared in this scope; did you mean 'st2'?
36 | while(dr-st>1)
| ^~
| st2
main.cpp:38:9: error: 'mij' was not declared in this scope; did you mean 'mij2'?
38 | mij=(st+dr)/2;
| ^~~
| mij2
main.cpp:44:16: error: 'dr' was not declared in this scope; did you mean 'dr2'?
44 | return dr;
| ^~
| dr2
main.cpp:35:9: warning: unused variable 'st2' [-Wunused-variable]
35 | int st2=0,dr2=n,mij2;
| ^~~
main.cpp:35:15: warning: unused variable 'dr2' [-Wunused-variable]
35 | int st2=0,dr2=n,mij2;
| ^~~
main.cpp:35:21: warning: unused variable 'mij2' [-Wunused-variable]
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
