Problem | subgraphs |
---|---|
User | Runjia |
Submission Time | 2025-03-08 10:16:46 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
subgraphs.cpp:4:1: error: expected initializer before ‘bool’
4 | bool visited [1000005]
| ^~~~
subgraphs.cpp: In function ‘int main()’:
subgraphs.cpp:20:2: error: ‘adjlist’ was not declared in this scope
20 | adjlist[a].push_back(b);
| ^~~~~~~
subgraphs.cpp:24:6: error: ‘visited’ was not declared in this scope
24 | if(visited[i]) continue; // ignore if node is already visited
| ^~~~~~~
subgraphs.cpp:25:3: error: ‘visited’ was not declared in this scope
25 | visited[i] = 1;
| ^~~~~~~
subgraphs.cpp:26:3: error: ‘group’ was not declared in this scope
26 | group[i] = a; //mark node as visited and assign to group
| ^~~~~
subgraphs.cpp:28:3: error: ‘dfs’ was not declared in this scope; did you mean ‘ffs’?
28 | dfs(i);
| ^~~
| ffs