You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Look this.
I can't compile kruskal_mst.h.
Who can help me?
Message:
/home/yangjz/code/forkprojects/algorithms/include/kruskal_mst.h: In member function ‘alg::Graph* alg::Kruskal::run()’:
/home/yangjz/code/forkprojects/algorithms/include/kruskal_mst.h:143:41: error: ‘class alg::Heapalg::Graph::Vertex*’ has no member named ‘min_key’
if(!pa->heap.is_empty()&&pa->heap.min_key()<weight) {
^~~~~~~
/home/yangjz/code/forkprojects/algorithms/include/kruskal_mst.h:144:26: error: ‘class alg::Heapalg::Graph::Vertex*’ has no member named ‘min_key’
weight = pa->heap.min_key();
^~~~~~~
/home/yangjz/code/forkprojects/algorithms/include/kruskal_mst.h:145:21: error: ‘class alg::Heapalg::Graph::Vertex*’ has no member named ‘min_value’
v = pa->heap.min_value();
^~~~~~~~~
/home/yangjz/code/forkprojects/algorithms/include/kruskal_mst.h:174:23: error: ‘class alg::Heapalg::Graph::Vertex*’ has no member named ‘delete_min’
best_from->heap.delete_min();
^~~~~~~~~~
/home/yangjz/code/forkprojects/algorithms/include/kruskal_mst.h:175:29: error: ‘class alg::Heapalg::Graph::Vertex*’ has no member named ‘delete_min’
lookup(best_to)->heap.delete_min();
^~~~~~~~~~
/home/yangjz/code/forkprojects/algorithms/include/kruskal_mst.h: In member function ‘void alg::Kruskal::print()’:
/home/yangjz/code/forkprojects/algorithms/include/kruskal_mst.h:191:35: error: no match for ‘operator[]’ (operand types are ‘alg::Heapalg::Graph::Vertex*’ and ‘uint32_t {aka unsigned int}’)
Graph::Vertex * v = pa->heap[i];
The text was updated successfully, but these errors were encountered:
Look this.
I can't compile kruskal_mst.h.
Who can help me?
Message:
/home/yangjz/code/forkprojects/algorithms/include/kruskal_mst.h: In member function ‘alg::Graph* alg::Kruskal::run()’:
/home/yangjz/code/forkprojects/algorithms/include/kruskal_mst.h:143:41: error: ‘class alg::Heapalg::Graph::Vertex*’ has no member named ‘min_key’
if(!pa->heap.is_empty()&&pa->heap.min_key()<weight) {
^~~~~~~
/home/yangjz/code/forkprojects/algorithms/include/kruskal_mst.h:144:26: error: ‘class alg::Heapalg::Graph::Vertex*’ has no member named ‘min_key’
weight = pa->heap.min_key();
^~~~~~~
/home/yangjz/code/forkprojects/algorithms/include/kruskal_mst.h:145:21: error: ‘class alg::Heapalg::Graph::Vertex*’ has no member named ‘min_value’
v = pa->heap.min_value();
^~~~~~~~~
/home/yangjz/code/forkprojects/algorithms/include/kruskal_mst.h:174:23: error: ‘class alg::Heapalg::Graph::Vertex*’ has no member named ‘delete_min’
best_from->heap.delete_min();
^~~~~~~~~~
/home/yangjz/code/forkprojects/algorithms/include/kruskal_mst.h:175:29: error: ‘class alg::Heapalg::Graph::Vertex*’ has no member named ‘delete_min’
lookup(best_to)->heap.delete_min();
^~~~~~~~~~
/home/yangjz/code/forkprojects/algorithms/include/kruskal_mst.h: In member function ‘void alg::Kruskal::print()’:
/home/yangjz/code/forkprojects/algorithms/include/kruskal_mst.h:191:35: error: no match for ‘operator[]’ (operand types are ‘alg::Heapalg::Graph::Vertex*’ and ‘uint32_t {aka unsigned int}’)
Graph::Vertex * v = pa->heap[i];
The text was updated successfully, but these errors were encountered: