Borderou de evaluare (job #1426314)
Utilizator | Data | 29 aprilie 2015 13:52:59 | |
---|---|---|---|
Problema | Cautare binara | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:21:26: error: ‘n’ was not declared in this scope
st=1; dr=n;
^
user.cpp:25:24: error: ‘v’ was not declared in this scope
if(v[m]<=x) st=m+1; else dr=m-1;
^
user.cpp:27:20: error: ‘v’ was not declared in this scope
if(v[dr]==x) out<<dr<<"\n"; else out<<"-1"<<"\n";
^
user.cpp:33:26: error: ‘n’ was not declared in this scope
st=1; dr=n;
^
user.cpp:37:24: error: ‘v’ was not declared in this scope
if(v[m]<=x) st=m+1; else dr=m-1;
^
user.cpp:45:26: error: ‘n’ was not declared in this scope
st=1; dr=n;
^
user.cpp:49:24: error: ‘v’ was not declared in this scope
if(v[m]<x) st=m+1; else dr=m-1;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !