| Problem | railway |
|---|---|
| User | weccs |
| Submission Time | 2026-09-26 15:31:14 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
railway.cpp: In function ‘void findpa(int, int)’:
railway.cpp:30:9: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
30 | return x;
| ^
railway.cpp: In function ‘int lca(int, int)’:
railway.cpp:35:12: error: void value not ignored as it ought to be
35 | a = findpa(a,depth[a]-depth[b]);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~
railway.cpp: In function ‘int main()’:
railway.cpp:61:26: error: ‘i’ was not declared in this scope
61 | for (int k = 1; k < 20; i++) {
| ^