Problem | railway |
---|---|
User | weccs |
Submission Time | 2025-10-07 16:42:07 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
railway.cpp: In function ‘long long int lca(long long int, long long int)’:
railway.cpp:33:12: error: ‘a’ was not declared in this scope
33 | if (depth[a] < depth[b]) swap(a,b);
| ^
railway.cpp:33:23: error: ‘b’ was not declared in this scope
33 | if (depth[a] < depth[b]) swap(a,b);
| ^
railway.cpp:35:9: error: ‘a’ was not declared in this scope
35 | if (p[a][k] != -1 && depth[p[a][k]] >= depth[b]) {
| ^
railway.cpp:35:48: error: ‘b’ was not declared in this scope
35 | if (p[a][k] != -1 && depth[p[a][k]] >= depth[b]) {
| ^
railway.cpp:39:6: error: ‘a’ was not declared in this scope
39 | if (a == b) return a;
| ^
railway.cpp:39:11: error: ‘b’ was not declared in this scope
39 | if (a == b) return a;
| ^
railway.cpp:41:9: error: ‘a’ was not declared in this