Borderou de evaluare (job #2338718)
Utilizator | Data | 7 februarie 2019 18:55:16 | |
---|---|---|---|
Problema | Cautare binara | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int cbin(int)':
main.cpp:11:16: error: 'msk' was not declared in this scope
if(pos+msk<=n && v[pos+msk]<=val)
^~~
main.cpp:10:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int msh=1<<20;msh>0;msh/=2)
^~~
main.cpp:13:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
return pos;
^~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !