Problem pipes
User bribritt
Submission Time 2023-04-22 10:07:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pipes.cpp:6:9: error: ‘vector’ does not name a type
6 | typedef vector<int> vi;
| ^~~~~~
pipes.cpp:9:1: error: ‘vi’ does not name a type
9 | vi adj[MAXN], adj_dfs3[MAXN];
| ^~
pipes.cpp: In function ‘void dfs(int)’:
pipes.cpp:14:17: error: ‘adj’ was not declared in this scope
14 | for(auto i: adj[x]) if(!visited[i]) {
| ^~~
pipes.cpp:16:6: error: ‘adj_dfs3’ was not declared in this scope
16 | adj_dfs3[x].pb(i);
| ^~~~~~~~
pipes.cpp: In function ‘int dp(int)’:
pipes.cpp:25:16: error: ‘adj_dfs3’ was not declared in this scope
25 | for(auto i:adj_dfs3[x]) if(h[i]>h[x]) crossEdges[x]+=dp(i);
| ^~~~~~~~
pipes.cpp: In function ‘int32_t main()’:
pipes.cpp:33:9: error: ‘adj’ was not declared in this scope
33 | adj[A].pb(B);
| ^~~
pipes.cpp:37:27: error: ‘adj’ was not declared in this scope