0_0_16462249_15036.cpp: In function 'void DFS(int, int)':
0_0_16462249_15036.cpp:3:2: error: 'vis' was not declared in this scope
vis[u] = 1;
^
0_0_16462249_15036.cpp:4:2: error: 'dfn' was not declared in this scope
dfn[top] = dep;
^
0_0_16462249_15036.cpp:4:6: error: 'top' was not declared in this scope
dfn[top] = dep;
^
0_0_16462249_15036.cpp:5:2: error: 'euler' was not declared in this scope
euler[top] = u;
^
0_0_16462249_15036.cpp:6:2: error: 'pos' was not declared in this scope
pos[u] = top;
^
0_0_16462249_15036.cpp:8:21: error: 'Tree' was not declared in this scope
for(int i = 0; i < Tree[u].size(); i++)
^
0_0_16462249_15036.cpp: In function 'void RMQ_init(int)':
0_0_16462249_15036.cpp:21:30: error: 'd' was not declared in this scope
for(int i = 1; i <= n; i++) d[i][0] = i;
^
0_0_16462249_15036.cpp:25:7: error: 'dfn' was not declared in this scope
if(dfn[d[i][j-1]] < dfn[d[i + (1<<(j-1))][j-1]]) d[i][j] = d[i][j-1];
^
0_0_16462249_15036.cpp:25:11: error: 'd' was not declared in this scope
if(dfn[d[i][j-1]] < dfn[d[i + (1<<(j-1))][j-1]]) d[i][j] = d[i][j-1];
^
0_0_16462249_15036.cpp: In function 'int RMQ(int, int)':
0_0_16462249_15036.cpp:34:5: error: 'dfn' was not declared in this scope
if(dfn[d[L][k]] < dfn[d[R-(1<<k)+1][k]]) return d[L][k];
^
0_0_16462249_15036.cpp:34:9: error: 'd' was not declared in this scope
if(dfn[d[L][k]] < dfn[d[R-(1<<k)+1][k]]) return d[L][k];
^
0_0_16462249_15036.cpp:35:9: error: 'd' was not declared in this scope
return d[R-(1<<k)+1][k];
^
0_0_16462249_15036.cpp: In function 'int LCA(int, int)':
0_0_16462249_15036.cpp:40:5: error: 'pos' was not declared in this scope
if(pos[u] > pos[v]) swap(u, v);
^
0_0_16462249_15036.cpp:40:32: error: 'swap' was not declared in this scope
if(pos[u] > pos[v]) swap(u, v);
^
0_0_16462249_15036.cpp:41:9: error: 'euler' was not declared in this scope
return euler[RMQ(pos[u], pos[v])];
^
0_0_16462249_15036.cpp:41:19: error: 'pos' was not declared in this scope
return euler[RMQ(pos[u], pos[v])];
^
|