Problem | hld |
---|---|
User | popperoni |
Submission Time | 2024-12-22 14:44:28 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
hld.cpp:27:72: error: expected initializer before ‘twok’
27 | ll sz[maxn],counter,par[maxn],hp[maxn],pre[maxn],end1[maxn],depth[maxn]twok[maxn][20];
| ^~~~
hld.cpp: In function ‘void nt(long long int, long long int, long long int)’:
hld.cpp:87:2: error: ‘depth’ was not declared in this scope
87 | depth[x]=d;
| ^~~~~
hld.cpp: In function ‘void dfs2(long long int, long long int)’:
hld.cpp:97:6: error: ‘twok’ was not declared in this scope
97 | if(twok[x][k]==-1)break;
| ^~~~
hld.cpp:98:3: error: ‘twok’ was not declared in this scope
98 | twok[x][k+1]=twok[twok[x][k]][k];
| ^~~~
hld.cpp:102:3: error: ‘twok’ was not declared in this scope
102 | twok[it][0]=x;
| ^~~~
hld.cpp: In function ‘long long int kpar(long long int, long long int)’:
hld.cpp:109:17: error: ‘twok’ was not declared in this scope
109