Borderou de evaluare (job #3330059)

Utilizator marelucaMare Luca Ghita mareluca Data 17 decembrie 2025 12:02:53
Problema Paduri de multimi disjuncte Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:6:27: error: 'n' was not declared in this scope; did you mean 'yn'? 6 | std::vector<int> radacina(n + 1), rang(n + 1); | ^ | yn main.cpp:6:40: error: 'n' was not declared in this scope; did you mean 'yn'? 6 | std::vector<int> radacina(n + 1), rang(n + 1); | ^ | yn main.cpp:24:24: error: 'node_B' has not been declared 24 | void unite(int node_A, node_B) { | ^~~~~~ main.cpp: In function 'void unite(int, int)': main.cpp:25:28: error: 'node_B' was not declared in this scope; did you mean 'node_A'? 25 | if(rang[node_A] > rang[node_B]) { | ^~~~~~ | node_A main.cpp: In function 'int find_R(int)': main.cpp:22:1: warning: control reaches end of non-void function [-Wreturn-type] 22 | } | ^ Non zero exit status: 1

Ceva nu functioneaza?