0_0_36381322_31447.cpp: In function 'void solve()':
0_0_36381322_31447.cpp:39:45: error: 'struct edge' has no member named 'u'
for(int i=1;i<=m;i++) scanf("%d%d%d",&q[i].u,&q[i].v,&q[i].w);
^
0_0_36381322_31447.cpp:39:53: error: 'struct edge' has no member named 'v'
for(int i=1;i<=m;i++) scanf("%d%d%d",&q[i].u,&q[i].v,&q[i].w);
^
|