Problem | railway |
---|---|
User | Samyeobeo |
Submission Time | 2025-10-07 16:29:05 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
railway.cpp: In function ‘void dfs(long long int, long long int)’:
railway.cpp:10:14: error: expression cannot be used as a function
10 | if(i.first() == par) continue;
| ^
railway.cpp:11:17: error: expression cannot be used as a function
11 | depth[i.first()] = depth[x]+1;
| ^
railway.cpp:12:13: error: expression cannot be used as a function
12 | p[i.first()][0] = x;
| ^
railway.cpp:13:15: error: expression cannot be used as a function
13 | dfs(i.first(),x);
| ^