Problem | subgraphs |
---|---|
User | asbx |
Submission Time | 2023-11-10 11:57:18 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
subgraphs.cpp: In function ‘void dfs(int)’:
subgraphs.cpp:6:15: error: ‘V’ was not declared in this scope
6 | bool visited[V+1];
| ^
subgraphs.cpp:7:6: error: ‘visited’ was not declared in this scope
7 | if (visited[x]) return;
| ^~~~~~~
subgraphs.cpp:8:2: error: ‘subgraph’ was not declared in this scope
8 | subgraph = subgraph + 1;
| ^~~~~~~~
subgraphs.cpp:9:2: error: ‘visited’ was not declared in this scope
9 | visited[x] = true;
| ^~~~~~~
subgraphs.cpp:10:15: error: ‘g’ was not declared in this scope
10 | for (auto i: g[x]) {
| ^