Borderou de evaluare (job #2816519)
Utilizator | Data | 11 decembrie 2021 15:04:06 | |
---|---|---|---|
Problema | Arbori de intervale | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void build(int, int, int)':
main.cpp:27:20: error: invalid types 'int [100000][std::ios_base&(std::ios_base&)]' for array subscript
27 | arbint[pos] = v[left];
| ^
main.cpp:33:3: error: 'mid' was not declared in this scope
33 | mid = (left + right) / 2;
| ^~~
main.cpp:33:15: error: invalid operands of types 'std::ios_base&(std::ios_base&)' and 'std::ios_base&(std::ios_base&)' to binary 'operator+'
33 | mid = (left + right) / 2;
| ~~~~ ^ ~~~~~
| | |
| | std::ios_base&(std::ios_base&)
| std::ios_base&(std::ios_base&)
main.cpp:34:3: error: 'lChild' was not declared in this scope; did you mean 'rChild'?
34 | lChild = pos + 1;
| ^~~~~~
| rChild
main.cpp:35:3: error: 'rightSon' was not declared in this scope
35 | rightSon = pos + 2 * (mid - left + 1);
| ^~~~~~~~
main.cpp:31:7: warning: unused variable 'nMid' [-Wunused-variable]
31 | int nMid, leftSon, rChild;
| ^~~~
main.cpp:31:13: warning: unused variable 'leftSon' [-Wunused-variable]
31 | int nMid, leftSon, rChild;
| ^~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !