0_0_21772706_21734.cpp: In function 'void kruskal()': 0_0_21772706_21734.cpp:37:25: error: 'ans' was not declared in this scope ans-=p[i].d; ^