diff options
| author | f1or1an <110727007+f1or1an@users.noreply.github.com> | 2024-09-06 00:20:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-06 00:20:38 +0200 |
| commit | 568329cab9a64d8059fe58142d35c43dfc08355e (patch) | |
| tree | 63fbe095cf348ad38a557a0340d4b2db52ef73db /content/graph/reroot.cpp | |
| parent | 943d96c5f7cde38e5ec02b1cdb29bb7c8766574c (diff) | |
Update content/graph/reroot.cpp
Diffstat (limited to 'content/graph/reroot.cpp')
| -rw-r--r-- | content/graph/reroot.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/graph/reroot.cpp b/content/graph/reroot.cpp index 3ed19d0..379c839 100644 --- a/content/graph/reroot.cpp +++ b/content/graph/reroot.cpp @@ -4,7 +4,7 @@ vector<vector<pair<int, W>>> adj; struct Reroot { using T = ll; // dp type - T E = 0; // neutral element + static constexpr T E = 0; // neutral element T takeChild(int v, int c, W w, T x) {} // move child along edge static T comb(T x, T y) {} T fin(int v, T x) {} // add v to own dp value x |
