0_0_20911170_7440.cpp:11:9: error: 'N' was not declared in this scope
int dep[N], dis[N][20];
^
0_0_20911170_7440.cpp:11:17: error: 'N' was not declared in this scope
int dep[N], dis[N][20];
^
0_0_20911170_7440.cpp:12:10: error: 'N' was not declared in this scope
int head[N], cnt;
^
0_0_20911170_7440.cpp:13:15: error: 'N' was not declared in this scope
vector<int> e[N*2];
^
0_0_20911170_7440.cpp:14:8: error: 'N' was not declared in this scope
int id[N], idx, a[N], b[N];
^
0_0_20911170_7440.cpp:14:19: error: 'N' was not declared in this scope
int id[N], idx, a[N], b[N];
^
0_0_20911170_7440.cpp:14:25: error: 'N' was not declared in this scope
int id[N], idx, a[N], b[N];
^
0_0_20911170_7440.cpp: In function 'void genId(int, int)':
0_0_20911170_7440.cpp:17:5: error: 'id' was not declared in this scope
id[rt] = ++idx;
^
0_0_20911170_7440.cpp:18:18: error: 'e' was not declared in this scope
for(auto y : e[rt]) {
^
0_0_20911170_7440.cpp: In function 'bool cmp(int, int)':
0_0_20911170_7440.cpp:27:12: error: 'id' was not declared in this scope
return id[a] < id[b];
^
0_0_20911170_7440.cpp: In function 'void dfs(int)':
0_0_20911170_7440.cpp:31:22: error: 'N' was not declared in this scope
static int Stack[N];
^
0_0_20911170_7440.cpp:33:5: error: 'dep' was not declared in this scope
dep[rt] = 1;
^
0_0_20911170_7440.cpp:35:9: error: 'dis' was not declared in this scope
dis[rt][i] = rt;
^
0_0_20911170_7440.cpp:37:5: error: 'Stact' was not declared in this scope
Stact[++top] = rt;
^
0_0_20911170_7440.cpp:39:17: error: 'Stack' was not declared in this scope
int x = Stack[top];
^
0_0_20911170_7440.cpp:42:21: error: 'dis' was not declared in this scope
y = dis[x][i - 1];
^
0_0_20911170_7440.cpp:44:13: error: 'dis' was not declared in this scope
dis[x][i] = dis[x][i - 1];
^
0_0_20911170_7440.cpp:44:20: error: 'i' was not declared in this scope
dis[x][i] = dis[x][i - 1];
^
0_0_20911170_7440.cpp:46:22: error: 'e' was not declared in this scope
for(auto y : e[x]) {
^
0_0_20911170_7440.cpp:47:21: error: 'dis' was not declared in this scope
if(y != dis[x][0]) {
^
0_0_20911170_7440.cpp:49:17: error: 'far' was not declared in this scope
far[y][0] = x;
^
0_0_20911170_7440.cpp:53:22: error: expected primary-expression before ')' token
while(top && )
^
0_0_20911170_7440.cpp:54:5: error: expected primary-expression before '}' token
}
^
|