Problem railway
User benji9736
Submission Time 2025-12-17 14:51:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

railway.cpp:5:7: error: expected unqualified-id before ‘<<’ token
5 | vector<<pair<int, int>> adj[100005];
| ^~
railway.cpp: In function ‘void dfs(long long int, long long int, long long int)’:
railway.cpp:9:26: error: ‘adj’ was not declared in this scope
9 | for (pair<int, int> i : adj[n]){
| ^~~
railway.cpp: In function ‘int main()’:
railway.cpp:49:3: error: ‘adj’ was not declared in this scope
49 | adj[a].push_back({b, c});
| ^~~
railway.cpp:65:9: error: ‘dist’ was not declared in this scope
65 | cout<<dist[x] + dist[y] - 2 * dist[i]<<endl;
| ^~~~
railway.cpp:65:38: error: ‘i’ was not declared in this scope
65 | cout<<dist[x] + dist[y] - 2 * dist[i]<<endl;
| ^