Borderou de evaluare (job #2615674)
Utilizator | Data | 15 mai 2020 10:27:55 | |
---|---|---|---|
Problema | Arbori binari de cautare echilibrati | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'void RBtree::insert()':
main.cpp:50:12: warning: unused variable 'i' [-Wunused-variable]
int z,i=0;
^
main.cpp: At global scope:
main.cpp:85:6: error: 'ArboreRB' has not been declared
void ArboreRB::insertfix(node *t)
^~~~~~~~
main.cpp: In function 'void insertfix(node*)':
main.cpp:89:18: error: 'root' was not declared in this scope
while ((t != root) && (t->color != 'b') &&
^~~~
main.cpp:121:40: error: 'leftrotate' was not declared in this scope
leftrotate(parent_t);
^
main.cpp:129:43: error: 'rightrotate' was not declared in this scope
rightrotate(grand_parent_t);
^
main.cpp:158:41: error: 'rightrotate' was not declared in this scope
rightrotate(parent_t);
^
main.cpp:166:42: error: 'leftrotate' was not declared in this scope
leftrotate(grand_parent_t);
^
main.cpp:173:5: error: 'root' was not declared in this scope
root->color = 'b';
^~~~
main.cpp: In member function 'void RBtree::delfix(node*)':
main.cpp:261:44: warning: statement has no effect [-Wunused-value]
s->left->color=='b';
~~~~~~~~~~~~~~^~~~~
main.cpp: In member function 'void RBtree::Succesor()':
main.cpp:536:6: warning: unused variable 'gasit' [-Wunused-variable]
int gasit=0;
^~~~~
main.cpp: In member function 'void RBtree::Predecesor()':
main.cpp:569:6: warning: unused variable 'gasit' [-Wunused-variable]
int gasit=0;
^~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !