Borderou de evaluare (job #2334533)
Utilizator | Data | 2 februarie 2019 18:12:01 | |
---|---|---|---|
Problema | Cautare binara | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:12: error: variable 'std::ifstream in' has initializer but incomplete type
ifstream in("cautbin.in");
^
main.cpp:6:13: error: variable 'std::ofstream out' has initializer but incomplete type
ofstream out("cautbin.out");
^
main.cpp: In function 'int cerinta0(int)':
main.cpp:10:23: error: 'msk' was not declared in this scope
for(int ms=1<<20; msk>0; msk/=2)
^~~
main.cpp:11:21: error: 'n' was not declared in this scope
if(pos+msk<=n && v[pos+msk]<=val)
^
main.cpp:10:13: warning: unused variable 'ms' [-Wunused-variable]
for(int ms=1<<20; msk>0; msk/=2)
^~
main.cpp: In function 'int cerinta1(int)':
main.cpp:20:23: error: 'msk' was not declared in this scope
for(int ms=1<<20; msk>0; msk/=2)
^~~
main.cpp:21:21: error: 'n' was not declared in this scope
if(pos+msk<=n && v[pos+msk]<=val)
^
main.cpp:20:13: warning: unused variable 'ms' [-Wunused-variable]
for(int ms=1<<20; msk>0; msk/=2)
^~
main.cpp: In function 'int cerinta2(int)':
main.cpp:29:23: error: 'msk' was not declared in this scope
for(int ms=1<<20; msk>0; msk/=2)
^~~
main.cpp:30:21: error: 'n' was not declared in this scope
if(pos+msk<=n && v[pos+msk]<=val)
^
main.cpp:29:13: warning: unused variable 'ms' [-Wunused-variable]
for(int ms=1<<20; msk>0; msk/=2)
^~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !