Borderou de evaluare (job #1901699)
Utilizator | Data | 4 martie 2017 10:34:32 | |
---|---|---|---|
Problema | Cautare binara | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int bin_search0(int)’:
user.cpp:6:1: error: ‘l’ was not declared in this scope
l = 1, r = n, ans = -1;
^
user.cpp:6:8: error: ‘r’ was not declared in this scope
l = 1, r = n, ans = -1;
^
user.cpp:6:12: error: ‘n’ was not declared in this scope
l = 1, r = n, ans = -1;
^
user.cpp:6:15: error: ‘ans’ was not declared in this scope
l = 1, r = n, ans = -1;
^
user.cpp:11:12: error: ‘v’ was not declared in this scope
if(v[m] == x)
^
user.cpp: In function ‘int bin_search1(int)’:
user.cpp:25:1: error: ‘l’ was not declared in this scope
l = 1, r = n, ans;
^
user.cpp:25:8: error: ‘r’ was not declared in this scope
l = 1, r = n, ans;
^
user.cpp:25:12: error: ‘n’ was not declared in this scope
l = 1, r = n, ans;
^
user.cpp:25:15: error: ‘ans’ was not declared in this scope
l = 1, r = n, ans;
^
user.cpp:29:12: error: ‘v’ was not declared in this scope
if(v[m] <= x)
^
user.cpp: In function ‘int bin_search2(int)’:
user.cpp:40:1: error: ‘l’ was not declared in this scope
l = 1, r = n, ans;
^
user.cpp:40:8: error: ‘r’ was not declared in this scope
l = 1, r = n, ans;
^
user.cpp:40:12: error: ‘n’ was not declared in this scope
l = 1, r = n, ans;
^
user.cpp:40:15: error: ‘ans’ was not declared in this scope
l = 1, r = n, ans;
^
user.cpp:44:12: error: ‘v’ was not declared in this scope
if(v[m] >= x)
^
user.cpp: In function ‘int main()’:
user.cpp:59:11: error: ‘n’ was not declared in this scope
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !