Borderou de evaluare (job #3318240)

Utilizator livliviLivia Magureanu livlivi Data 27 octombrie 2025 17:01:27
Problema Sortare prin comparare Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void print(std::ostream&, Node*, int)': main.cpp:76:17: error: invalid initialization of reference of type 'std::ostream&' {aka 'std::basic_ostream<char>&'} from expression of type 'Node*' 76 | print(node->left, lvl + 1); | ~~~~~~^~~~ main.cpp:73:21: note: in passing argument 1 of 'void print(std::ostream&, Node*, int)' 73 | void print(ostream& out, Node* node, int lvl = 0) { | ~~~~~~~~~^~~ main.cpp:84:17: error: invalid initialization of reference of type 'std::ostream&' {aka 'std::basic_ostream<char>&'} from expression of type 'Node*' 84 | print(node->right, lvl + 1); | ~~~~~~^~~~~ main.cpp:73:21: note: in passing argument 1 of 'void print(std::ostream&, Node*, int)' 73 | void print(ostream& out, Node* node, int lvl = 0) { | ~~~~~~~~~^~~ Non zero exit status: 1

Ceva nu functioneaza?