Imam funkciju koja brise stablo i koja nece da se iskompajlira:
int btree::obrisi(){
drvo *next=koren;
stack<drvo*> stek;
while (NULL!=next){
stek.push(next);
next=next->levo;
};
while (!stek.empty()){
next=stek.pop();// ******ovde je greska koju ne razumem*****
if (next>0){
stek.push(-next);
next=next->desno;
while (next!=NULL){
stek.push(next);
next=next->levo;
};
}
else{
next=-next; //
delete next;
}
}
Greska je : void value not ignores as it ought be
Sta to znaci?
Seven ways to win
Seven holy paths to hell
And your trip begins
Seven downward slopes
Seven bloodied hopes
Seven are your burning fires,
Seven your desires...










Problem sa brisanjem stabla