Problem | roadsideadverts |
---|---|
User | user123 |
Submission Time | 2023-09-20 13:17:17 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
roadsideadverts.cpp: In constructor ‘lca::lca()’:
roadsideadverts.cpp:18:34: error: ‘lg’ was not declared in this scope; did you mean ‘ll’?
18 | for (int a=2; a<=i; a++) lg[a]=lg[a>>1]+1;
| ^~
| ll
roadsideadverts.cpp:23:17: error: ‘st’ was not declared in this scope; did you mean ‘std’?
23 | st[a][b]=f(st[a][b-1], st[a+(1<<(b-1))][b-1]);
| ^~
| std
roadsideadverts.cpp: In member function ‘void lca::dfs(int)’:
roadsideadverts.cpp:30:9: error: ‘st’ was not declared in this scope; did you mean ‘std’?
30 | st[i][0]=u;
| ^~
| std
roadsideadverts.cpp: In member function ‘ll lca::query(int, int)’:
roadsideadverts.cpp:46:15: error: ‘lg’ was not declared in this scope; did you mean ‘ll’?
46 | int t=lg[y-x+1];
|