Borderou de evaluare (job #2863375)
Utilizator | Data | 6 martie 2022 17:10:15 | |
---|---|---|---|
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 cautare_binara1()':
main.cpp:3:17: error: 'n' was not declared in this scope
3 | int lo=0,hi=n+1,mij;
| ^
main.cpp:6:9: error: 'mij' was not declared in this scope
6 | mij=(hi+lo)/2;
| ^~~
main.cpp:7:12: error: 'v' was not declared in this scope
7 | if(v[mij]>x)
| ^
main.cpp:7:19: error: 'x' was not declared in this scope
7 | if(v[mij]>x)
| ^
main.cpp:12:16: error: 'v' was not declared in this scope
12 | if(lo<n+1&&v[lo]==x)
| ^
main.cpp:12:23: error: 'x' was not declared in this scope
12 | if(lo<n+1&&v[lo]==x)
| ^
main.cpp: In function 'int cautare_binara2()':
main.cpp:19:17: error: 'n' was not declared in this scope
19 | int lo=0,hi=n+1,mij;
| ^
main.cpp:22:9: error: 'mij' was not declared in this scope
22 | mij=(hi+lo)/2;
| ^~~
main.cpp:23:12: error: 'v' was not declared in this scope
23 | if(v[mij]>x)
| ^
main.cpp:23:19: error: 'x' was not declared in this scope
23 | if(v[mij]>x)
| ^
main.cpp: In function 'int cautare_binara3()':
main.cpp:32:17: error: 'n' was not declared in this scope
32 | int lo=0,hi=n+1,mij;
| ^
main.cpp:35:9: error: 'mij' was not declared in this scope
35 | mij=(hi+lo)/2;
| ^~~
main.cpp:36:12: error: 'v' was not declared in this scope
36 | if(v[mij]<x)
| ^
main.cpp:36:19: error: 'x' was not declared in this scope
36 | if(v[mij]<x)
| ^
main.cpp: In function 'int main()':
main.cpp:46:5: error: 'f' was not declared in this scope
46 | f>>n;
| ^
main.cpp:46:8: error: 'n' was not declared in this scope
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !