Borderou de evaluare (job #1168441)
| Utilizator | Data | 8 aprilie 2014 16:48:21 | |
|---|---|---|---|
| Problema | Cautare binara | Status | done |
| Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int solve1(int)’:
user.cpp:23:14: error: ‘low’ was not declared in this scope
while ((low != high) && ((low + 1 != high))) {
^
user.cpp:23:21: error: ‘high’ was not declared in this scope
while ((low != high) && ((low + 1 != high))) {
^
user.cpp:31:10: error: ‘high’ was not declared in this scope
return high + 1;
^
user.cpp: In function ‘int solve2(int)’:
user.cpp:34:11: error: ‘low’ was not declared in this scope
while ((low != high) && ((low + 1 != high))) {
^
user.cpp:34:18: error: ‘high’ was not declared in this scope
while ((low != high) && ((low + 1 != high))) {
^
user.cpp:42:10: error: ‘high’ was not declared in this scope
if (v[high] == val) return (high + 1);
^
user.cpp: In function ‘int solve1(int)’:
user.cpp:32:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int solve2(int)’:
user.cpp:43:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
