Problem girlfriend
User PlayVoltz
Submission Time 2023-11-04 22:38:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

girlfriend.cpp:9:1: error: ‘vector’ does not name a type
9 | vector<vector<pii> > graph;
| ^~~~~~
girlfriend.cpp:10:1: error: ‘vector’ does not name a type
10 | vector<vector<int> > tgraph;
| ^~~~~~
girlfriend.cpp:11:1: error: ‘vector’ does not name a type
11 | vector<bool> visited, v;
| ^~~~~~
girlfriend.cpp:12:1: error: ‘vector’ does not name a type
12 | vector<int> dp;
| ^~~~~~
girlfriend.cpp: In function ‘void dfs(long long int)’:
girlfriend.cpp:16:2: error: ‘visited’ was not declared in this scope
16 | visited[node]=1;
| ^~~~~~~
girlfriend.cpp:17:16: error: ‘tgraph’ was not declared in this scope
17 | for (auto num:tgraph[node]){
| ^~~~~~
girlfriend.cpp: In function ‘void dfs2(long long int)’:
girlfriend.cpp:24:2: error: ‘v’ was not declared in this scope
24 | v[node]=1;
| ^
girlfriend.cpp:25:16