Problem zanesescape
User Pan
Submission Time 2024-12-28 14:05:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

zanesescape.cpp: In function ‘void dfs(ll, ll)’:
zanesescape.cpp:102:2: error: ‘pa’ was not declared in this scope; did you mean ‘p’?
102 | pa[x] = p;
| ^~
| p
zanesescape.cpp:107:3: error: ‘j’ was not declared in this scope
107 | j[u.f] = (depth[j[j[x]]]+depth[x]==(depth[j[x]]<<1)?j[j[x]]:x);
| ^
zanesescape.cpp: In function ‘ll lca(ll, ll)’:
zanesescape.cpp:115:39: error: ‘j’ was not declared in this scope
115 | while (depth[b] > depth[a]) b=(depth[j[b]]<depth[a]?pa[b]:j[b]);
| ^
zanesescape.cpp:115:54: error: ‘pa’ was not declared in this scope; did you mean ‘a’?
115 | while (depth[b] > depth[a]) b=(depth[j[b]]<depth[a]?pa[b]:j[b]);
| ^~
| a
zanesescape.cpp:118:7: error: ‘j’ was not declared in this scope
118 | if (j[