QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#334952#7936. Eliminate TreeZhaoZiLongCompile Error//C++171.1kb2024-02-22 15:29:182024-02-22 15:29:19

详细

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);
      |                                          ^~~