QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#334952#7936. Eliminate TreeZhaoZiLongCompile Error//C++171.1kb2024-02-22 15:29:182024-02-22 15:29:19

Details

answer.code: In function ‘void dfs(long long int, long long int)’:
answer.code:32:42: error: ‘sum’ was not declared in this scope
   32 |                 dp[u][0] = min(dp[u][0], sum - min(dp[v][0], dp[v][1]) + dp[v][1] + 1);
      |                                          ^~~