Minimum Spanning Tree

kuch test case warning aa rhe h aur kuch wrong?

the question you have asked is min spanning tree

Sample Input is
4 5
0 1 10
1 2 15
0 2 5
3 1 2
3 2 40

First line contains two integers V and E.

but you have taken 3
cin >> n >> e >> c;
what is c here??

why you are using unordered_map<ll,ll> weights;??

explain me your approach