Problem ghostrule
User PlayVoltz
Submission Time 2024-01-02 23:17:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ghostrule.cpp: In function ‘void twokdecomp(long long int, long long int, long long int)’:
ghostrule.cpp:21:2: error: ‘twok’ was not declared in this scope
21 | twok[node][0] = par;
| ^~~~
ghostrule.cpp: In function ‘long long int kthparent(long long int, long long int)’:
ghostrule.cpp:28:46: error: ‘twok’ was not declared in this scope
28 | for (int i=0; i<20; ++i)if (k&(1<<i))node = twok[node][i];
| ^~~~
ghostrule.cpp: In function ‘long long int lca(long long int, long long int)’:
ghostrule.cpp:37:7: error: ‘twok’ was not declared in this scope
37 | if (twok[a][i]!=twok[b][i]){
| ^~~~
ghostrule.cpp:42:9: error: ‘twok’ was not declared in this scope
42 | return twok[a][0];
| ^~~~