Borderou de evaluare (job #2730089)

Utilizator adiaioanaAdia R. adiaioana Data 25 martie 2021 19:15:01
Problema Zeap Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void _split(treap*, int, treap*&, treap*&)': main.cpp:46:17: error: '_update' was not declared in this scope _update(root); ^ main.cpp: In function 'void _merge(treap*&, treap*, treap*)': main.cpp:69:17: error: '_update' was not declared in this scope _update(root); ^ main.cpp: In function 'void _insert(treap*&, int)': main.cpp:94:15: error: no matching function for call to 'treap::treap()' treap * l,r,mij; ^ main.cpp:16:5: note: candidate: treap::treap(int) treap(int val) ^~~~~ main.cpp:16:5: note: candidate expects 1 argument, 0 provided main.cpp:10:8: note: candidate: constexpr treap::treap(const treap&) struct treap ^~~~~ main.cpp:10:8: note: candidate expects 1 argument, 0 provided main.cpp:10:8: note: candidate: constexpr treap::treap(treap&&) main.cpp:10:8: note: candidate expects 1 argument, 0 provided main.cpp:94:17: error: no matching function for call to 'treap::treap()' treap * l,r,mij; ^~~ main.cpp:16:5: note: candidate: treap::treap(int) treap(int val) ^~~~~ main.cpp:16:5: note: candidate expects 1 argument, 0 provided main.cpp:10:8: note: candidate: constexpr treap::treap(const treap&) struct treap ^~~~~ main.cpp:10:8: note: candidate expects 1 argument, 0 provided main.cpp:10:8: note: candidate: constexpr treap::treap(treap&&) main.cpp:10:8: note: candidate expects 1 argument, 0 provided main.cpp:96:28: error: invalid initialization of reference of type 'treap*&' from expression of type 'treap' _split(root,val-1, l, r); ^ main.cpp:30:6: note: in passing argument 4 of 'void _split(treap*, int, treap*&, treap*&)' void _split(treap * root, int val, treap * &left, treap * &right) ^~~~~~ main.cpp:97:26: error: cannot convert 'treap' to 'treap*' for argument '1' to 'void _split(treap*, int, treap*&, treap*&)' _split(r, val, mij, r); ^ main.cpp:98:8: error: no match for 'operator!' (operand type is 'treap') if(!mij) ^~~~ main.cpp:98:8: note: candidate: operator!(bool) <built-in> main.cpp:98:8: note: no known conversion for argument 1 from 'treap' to 'bool' main.cpp:99:26: error: ambiguous overload for 'operator=' (operand types are 'treap' and 'treap*') Non zero exit status: 1

Ceva nu functioneaza?