0_0_37504611_9405.cpp: In function 'void Djs(int)': 0_0_37504611_9405.cpp:45:52: error: request for member 'w' in 'ans[i]', which is of non-class type 'int' ans[edge[i].to]=ans[temp.y]+ans[i].w; ^