Unverified Commit c59ccbb3 authored by qwerty756's avatar qwerty756 Committed by GitHub
Browse files

Fix code bug in HLD

目前给的代码编译不了,fix这个编译问题,跑出正确结果。
另外,我个人对树这里有一个问题,文档中有的时候是“结点”,有的时候是“节点”,到底应该是哪一种?是不是应该保持一致?我发现国内的一些题目也都还不一致。理论上数据结构中的jiedian都应该是“结点”,对吧?
parent 39eed989
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -379,7 +379,7 @@ int querymax(int x, int y) {
        scanf("%d%d", &a, &b), add_edge(a, b), add_edge(b, a);
      for (int i = 1; i <= n; i++) scanf("%d", w + i);
      dep[1] = 1;
      dfs1(1, -1);
      dfs1(1);
      dfs2(1, 1);
      st.build(1, 1, n);
      scanf("%d", &q);