0_0_27290419_30891.cpp:62:1: error: expected initializer before 'bool'
bool root[maxn],vis[maxn];//用于查询根节点、标记数组
^
0_0_27290419_30891.cpp: In function 'void dfs(int)':
0_0_27290419_30891.cpp:104:2: error: 'vis' was not declared in this scope
vis[x] = 1;
^
0_0_27290419_30891.cpp: In function 'void init()':
0_0_27290419_30891.cpp:140:3: error: 'root' was not declared in this scope
root[i] = vis[i] = dis[i] = lca[i] = 0;
^
0_0_27290419_30891.cpp:140:13: error: 'vis' was not declared in this scope
root[i] = vis[i] = dis[i] = lca[i] = 0;
^
0_0_27290419_30891.cpp: In function 'int main()':
0_0_27290419_30891.cpp:184:4: error: 'root' was not declared in this scope
root[vec[s1]] = 1;
^
0_0_27290419_30891.cpp:202:4: error: 'ans_order' was not declared in this scope
ans_order[i].first = a;
^
0_0_27290419_30891.cpp:212:8: error: 'root' was not declared in this scope
if(!root[i])//从根节点开始搜
^
0_0_27290419_30891.cpp:228:12: error: 'ans_order' was not declared in this scope
int f = ans_order[i].first;
^
|