0_0_25739053_6813.cpp: In function 'void init_parent()':
0_0_25739053_6813.cpp:28:3: error: 'heights' was not declared in this scope
heights[i] = 1;
^
0_0_25739053_6813.cpp: In function 'bool join(int, int)':
0_0_25739053_6813.cpp:45:7: error: 'heights' was not declared in this scope
if (heights[root1] < heights[root2]) {
^
0_0_25739053_6813.cpp: In function 'int MST(std::vector<int>&, bool*)':
0_0_25739053_6813.cpp:58:46: error: expected unqualified-id before ';' token
int n_used_edges=0,n_edges=id.size(),cost=0,;
^
0_0_25739053_6813.cpp:71:10: error: 'sum' was not declared in this scope
return sum;
^
|