Problem parade
User eulerleonhardfan
Submission Time 2024-01-22 08:32:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

parade.cpp: In function ‘void dfs(int, int)’:
parade.cpp:35:52: error: ‘postorder’ was not declared in this scope; did you mean ‘preorder’?
35 | dp[v.first] = dp[x]+v.second*(pref[end1[1]]-pref[postorder[1]-1]-2*(pref[end1[v.first]]-pref[preorder[v.first]-1]));
| ^~~~~~~~~
| preorder