Borderou de evaluare (job #3232549)

Utilizator KameshCarlos Matos Kamesh Data 30 mai 2024 19:44:02
Problema Arbori binari de cautare echilibrati Status done
Runda arhiva-test Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In constructor 'RedBlackNode::RedBlackNode(int, RedBlackNode*)': main.cpp:10:9: warning: 'RedBlackNode::value' will be initialized after [-Wreorder] 10 | int value; | ^~~~~ main.cpp:7:19: warning: 'RedBlackNode* RedBlackNode::parent' [-Wreorder] 7 | RedBlackNode* parent = this; | ^~~~~~ main.cpp:19:5: warning: when initialized here [-Wreorder] 19 | RedBlackNode(int key, RedBlackNode* parent ): value(key), parent(parent){} | ^~~~~~~~~~~~ main.cpp: In member function 'bool RedBlackTree::contains(int)': main.cpp:186:13: error: 'INT_MAX' was not declared in this scope 186 | min=INT_MAX; | ^~~~~~~ main.cpp:4:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? 3 | #include <vector> +++ |+#include <climits> 4 | main.cpp:187:13: error: 'INT_MIN' was not declared in this scope 187 | max=INT_MIN; | ^~~~~~~ main.cpp:187:13: note: 'INT_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'? Non zero exit status: 1

Ceva nu functioneaza?