Borderou de evaluare (job #2538878)

Utilizator DavidLDavid Lauran DavidL Data 5 februarie 2020 11:56:53
Problema Order Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:19:16: error: no matching function for call to 'Treap::Treap()' Treap *T = new Treap; ^~~~~ main.cpp:11:4: note: candidate: Treap::Treap(int, int) Treap(int v, int p) { ^~~~~ main.cpp:11:4: note: candidate expects 2 arguments, 0 provided main.cpp:6:8: note: candidate: constexpr Treap::Treap(const Treap&) struct Treap { ^~~~~ main.cpp:6:8: note: candidate expects 1 argument, 0 provided main.cpp:6:8: note: candidate: constexpr Treap::Treap(Treap&&) main.cpp:6:8: note: candidate expects 1 argument, 0 provided main.cpp: In function 'void baga(Treap*, int)': main.cpp:54:35: error: cannot convert 'Treap' to 'Treap*' in assignment nod = Treap(val, getRandom()); ^ main.cpp:58:15: error: 'R' was not declared in this scope if (val <= R->val) { ^ main.cpp: In function 'int kthElement(Treap*, int)': main.cpp:72:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ main.cpp: In function 'int main()': main.cpp:76:10: error: 'n' was not declared in this scope fi >> n; ^ main.cpp:79:12: error: 'R' was not declared in this scope baga(R, i); ^ main.cpp:84:24: error: 'R' was not declared in this scope fo << kthElement(R, curr) << " "; ^ Non zero exit status: 1

Ceva nu functioneaza?