Borderou de evaluare (job #3317642)

Utilizator stanciuvalentinStanciu-Tivlea Valentin Gabriel stanciuvalentin Data 24 octombrie 2025 18:09:36
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 recheck(TreapNode*&)': main.cpp:58:20: error: 'valmax' was not declared in this scope 58 | node->mindif = valmax; | ^~~~~~ main.cpp:63:97: error: expected '}' before ')' token 63 | node->mindif = min({node->mindif, node->left->mindif, node->value - node->left->maxvalue); | ~ ^ main.cpp:69:55: error: 'struct TreapNode' has no member named 'midif'; did you mean 'mindif'? 69 | node->mindif = min(node->mindif, node->right->midif, node->right->minvalue - node->value); | ^~~~~ | mindif Non zero exit status: 1

Ceva nu functioneaza?