Problem | pipes |
---|---|
User | Pan |
Submission Time | 2023-12-28 17:48:43 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
pipes.cpp: In function ‘void dfs(ll, ll)’:
pipes.cpp:20:23: error: cannot convert ‘std::vector<int>’ to ‘ll’ {aka ‘int’} in initialization
20 | for (ll to : adj[v])
| ^
pipes.cpp: In function ‘int main()’:
pipes.cpp:47:6: error: request for member ‘resize’ in ‘adj’, which is of non-class type ‘std::vector<std::vector<int> > [100005]’
47 | adj.resize(n+1);
| ^~~~~~
pipes.cpp:53:14: error: no matching function for call to ‘std::vector<std::vector<int> >::push_back(ll&)’
53 | adj[a].pb(b);
| ^
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from pipes.cpp:1:
/us