Problem pipes
User errorgorn
Submission Time 2023-01-02 02:55:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pipes.cpp: In function ‘int main()’:
pipes.cpp:28:9: error: ‘class std::vector<std::pair<int, int> >’ has no member named ‘pub’
28 | al[a].pub({b,x});
| ^~~
pipes.cpp:29:9: error: ‘class std::vector<std::pair<int, int> >’ has no member named ‘pub’
29 | al[b].pub({a,x});
| ^~~
pipes.cpp:32:6: error: ‘x’ was not declared in this scope
32 | rep(x,1,n+1) if (!in[x]) dfs(x,-1);
| ^
pipes.cpp:32:2: error: ‘rep’ was not declared in this scope
32 | rep(x,1,n+1) if (!in[x]) dfs(x,-1);
| ^~~