0_0_26093350_14050.cpp: In function 'void dfs(int, int)': 0_0_26093350_14050.cpp:51:16: error: 'd' was not declared in this scope dp[u]=(d[u]+dp[v]+(N-sum[v])*sum[v]%mod*w%mod)%mod; ^