Borderou de evaluare (job #585839)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Căutare binară | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 13 mar. 2021 13:46:51 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int caut_bin0(int)':
main.cpp:15:20: error: 'mid' was not declared in this scope; did you mean 'mij'?
15 | return mid;
| ^~~
| mij
main.cpp:16:14: error: 'mid' was not declared in this scope; did you mean 'mij'?
16 | if(v[mid] <= x)
| ^~~
| mij
main.cpp: In function 'int caut_bin1(int)':
main.cpp:31:19: error: 'mid' was not declared in this scope; did you mean 'mij'?
31 | rez = mid;
| ^~~
| mij