Problem railway
User dooweidde
Submission Time 2025-12-17 14:58:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

railway.cpp: In function ‘void dfs(long long int, long long int, long long int)’:
railway.cpp:7:2: error: ‘par’ was not declared in this scope; did you mean ‘__pstl::execution::v1::par’?
7 | par[n][0]=p;
| ^~~
| __pstl::execution::v1::par
In file included from /usr/include/c++/9/pstl/glue_algorithm_defs.h:15,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from railway.cpp:1:
/usr/include/c++/9/pstl/execution_defs.h:114:27: note: ‘__pstl::execution::v1::par’ declared here
114 | constexpr parallel_policy par{};
| ^~~
railway.cpp:8:2: error: ‘dist’ was not declared in this scope
8 | dist[n]=d;
| ^~~~
railway.cpp:9:22: error: ‘adj’ was not declared in this scope
9 | for (pair<int,int>i:adj[n] if (i.first != p)){
| ^~~
railway.cpp:9:28: