Borderou de evaluare (job #2621850)
Utilizator | Data | 30 mai 2020 21:03:33 | |
---|---|---|---|
Problema | Cautare binara | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:11:1: error: 'fin' does not name a type
fin>>n;
^~~
main.cpp:13:8: error: array bound is not an integer constant before ']' token
int v[n];
^
main.cpp: In function 'int cautareBinara0(int, int, int)':
main.cpp:24:13: error: 'v' was not declared in this scope
if (v[mid] <= val)
^
main.cpp:36:9: error: 'v' was not declared in this scope
if (v[mid] > val) mid --;
^
main.cpp:38:9: error: 'v' was not declared in this scope
if (v[mid] == val)
^
main.cpp: In function 'int cautareBinara1(int, int, int)':
main.cpp:55:13: error: 'v' was not declared in this scope
if (v[mid] <= val)
^
main.cpp:67:9: error: 'v' was not declared in this scope
if (v[mid] > val)
^
main.cpp: In function 'int cautareBinara2(int, int, int)':
main.cpp:85:13: error: 'v' was not declared in this scope
if (v[mid] < val)
^
main.cpp:97:9: error: 'v' was not declared in this scope
if (v[mid] < val)
^
main.cpp: In function 'int main()':
main.cpp:111:14: error: 'v' was not declared in this scope
fin>>v[i];
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !