Borderou de evaluare (job #1426080)
Utilizator | Data | 28 aprilie 2015 22:07:14 | |
---|---|---|---|
Problema | Cautare binara | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int cautare1(int)’:
user.cpp:27:24: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if(a[mij] <= y && (a[mij + 1] > y) || mij == n)
^
user.cpp: In function ‘int BS_1(int)’:
user.cpp:75:22: error: ‘N’ was not declared in this scope
int li = 0, lf = N;
^
user.cpp:79:12: error: ‘V’ was not declared in this scope
if(V[m] <= k && ((V[m + 1] > k) || (m + 1 == N)))
^
user.cpp:81:12: error: ‘V’ was not declared in this scope
if(V[m] > k)
^
user.cpp: In function ‘int BS_2(int)’:
user.cpp:90:22: error: ‘N’ was not declared in this scope
int li = 0, lf = N;
^
user.cpp:94:12: error: ‘V’ was not declared in this scope
if(V[m] >= k && ((V[m - 1] < k) || (m == 0)))
^
user.cpp:96:12: error: ‘V’ was not declared in this scope
if(V[m] > k)
^
user.cpp: In function ‘int BS_1(int)’:
user.cpp:86:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int BS_2(int)’:
user.cpp:101: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 !