Borderou de evaluare (job #1806452)
| Utilizator | Data | 15 noiembrie 2016 12:48:43 | |
|---|---|---|---|
| Problema | Order | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
user.cpp:3:1: error: declaration does not declare anything [-fpermissive]
int ;
^
user.cpp: In constructor ‘Treap::Treap(int, int, int*, int*)’:
user.cpp:14:17: error: cannot convert ‘int*’ to ‘Treap*’ in assignment
this->lf=lf;
^
user.cpp:15:17: error: cannot convert ‘int*’ to ‘Treap*’ in assignment
this->rt=rt;
^
user.cpp: In function ‘void rot_right(int*&)’:
user.cpp:21:21: error: request for member ‘rt’ in ‘* nod’, which is of non-class type ‘int’
Treap *aux=nod->rt;
^
user.cpp:22:10: error: request for member ‘rt’ in ‘* nod’, which is of non-class type ‘int’
nod->rt = aux->lf; aux->lf = nod;
^
user.cpp:22:32: error: cannot convert ‘int*’ to ‘Treap*’ in assignment
nod->rt = aux->lf; aux->lf = nod;
^
user.cpp:23:8: error: cannot convert ‘Treap*’ to ‘int*’ in assignment
nod=aux;
^
user.cpp: In function ‘void rot_left(int*&)’:
user.cpp:28:21: error: request for member ‘lf’ in ‘* nod’, which is of non-class type ‘int’
Treap *aux=nod->lf;
^
user.cpp:29:10: error: request for member ‘lf’ in ‘* nod’, which is of non-class type ‘int’
nod->lf = aux->rt; aux->rt = nod;
^
user.cpp:29:32: error: cannot convert ‘int*’ to ‘Treap*’ in assignment
nod->lf = aux->rt; aux->rt = nod;
^
user.cpp:30:8: error: cannot convert ‘Treap*’ to ‘int*’ in assignment
nod=aux;
^
user.cpp: In function ‘void balance(int*&)’:
user.cpp:35:13: error: request for member ‘lf’ in ‘* nod’, which is of non-class type ‘int’
if(nod->lf->pr > nod->pr)
^
user.cpp:35:27: error: request for member ‘pr’ in ‘* nod’, which is of non-class type ‘int’
if(nod->lf->pr > nod->pr)
^
user.cpp:37:18: error: request for member ‘rt’ in ‘* nod’, which is of non-class type ‘int’
else if(nod->rt->pr > n->pr)
^
user.cpp:37:27: error: ‘n’ was not declared in this scope
else if(nod->rt->pr > n->pr)
^
user.cpp: In function ‘void ins(Treap*&, int, int)’:
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
