0_0_39476074_23245.cpp:21:14: error: 'n' was not declared in this scope
21 | int ancestor[n + 100][d + 100];
| ^
0_0_39476074_23245.cpp:21:23: error: 'd' was not declared in this scope
21 | int ancestor[n + 100][d + 100];
| ^
0_0_39476074_23245.cpp:22:17: error: 'n' was not declared in this scope
22 | vector<int> son[n + 100][d + 100];
| ^
0_0_39476074_23245.cpp:22:26: error: 'd' was not declared in this scope
22 | vector<int> son[n + 100][d + 100];
| ^
0_0_39476074_23245.cpp: In function 'void work()':
0_0_39476074_23245.cpp:42:12: error: 'ancestor' was not declared in this scope
42 | ancestor[i][j] = i;
| ^~~~~~~~
0_0_39476074_23245.cpp:43:12: error: 'son' was not declared in this scope; did you mean 'sin'?
43 | son[i][j].clear();
| ^~~
| sin
0_0_39476074_23245.cpp:53:30: error: 'ancestor' was not declared in this scope
53 | unsigned int a = ancestor[x][j];
| ^~~~~~~~
0_0_39476074_23245.cpp:56:16: error: 'son' was not declared in this scope; did you mean 'sin'?
56 | if(son[a][j].size() > son[b][j].size()) swap(a, b);
| ^~~
| sin
0_0_39476074_23245.cpp:57:26: error: 'son' was not declared in this scope; did you mean 'sin'?
57 | for(auto p : son[a][j]) {
| ^~~
| sin
0_0_39476074_23245.cpp:62:13: error: 'son' was not declared in this scope; did you mean 'sin'?
62 | son[a][j].clear();
| ^~~
| sin
0_0_39476074_23245.cpp:70:13: error: 'ancestor' was not declared in this scope
70 | a = ancestor[a][k];
| ^~~~~~~~
0_0_39476074_23245.cpp:76:12: error: 'son' was not declared in this scope; did you mean 'sin'?
76 | if(son[a][k].size() > son[b][k].size()) swap(a, b);
| ^~~
| sin
0_0_39476074_23245.cpp:77:22: error: 'son' was not declared in this scope; did you mean 'sin'?
77 | for(auto p : son[a][k]) {
| ^~~
| sin
0_0_39476074_23245.cpp:84:9: error: 'son' was not declared in this scope; did you mean 'sin'?
84 | son[a][k].clear();
| ^~~
| sin
|