Problem railway
User jmuzhen
Submission Time 2025-10-07 16:28:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

railway.cpp:1:1: error: stray ‘##’ in program
1 | ##include<bits/stdc++.h>
| ^~
railway.cpp:1:3: error: ‘include’ does not name a type
1 | ##include<bits/stdc++.h>
| ^~~~~~~
railway.cpp:6:12: error: ‘pair’ does not name a type
6 | using ii = pair<int,int>;
| ^~~~
railway.cpp:8:1: error: ‘vector’ does not name a type
8 | vector<vector<int>> adj;
| ^~~~~~
railway.cpp:15:1: error: ‘vector’ does not name a type
15 | vector<vector<int>>par;
| ^~~~~~
railway.cpp:16:1: error: ‘vector’ does not name a type
16 | vector<int> dist;
| ^~~~~~
railway.cpp:17:1: error: ‘vector’ does not name a type
17 | vector<int>depth;
| ^~~~~~
railway.cpp: In function ‘void dfs(long long int, long long int, long long int, long long int)’:
railway.cpp:20:2: error: ‘par’ was not declared in this scope
20 | par[u]