Problem subgraphs
User Bulbasheen
Submission Time 2024-02-07 23:18:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

subgraphs.cpp:5:1: error: expected initializer before ‘bool’
5 | bool vis[1000005];
| ^~~~
subgraphs.cpp: In function ‘void dfs(long long int)’:
subgraphs.cpp:8:5: error: ‘vis’ was not declared in this scope
8 | vis[x] = true;
| ^~~
subgraphs.cpp:9:19: error: ‘adjlist’ was not declared in this scope
9 | for (auto it: adjlist[x]){
| ^~~~~~~
subgraphs.cpp: In function ‘int32_t main()’:
subgraphs.cpp:21:9: error: ‘adjlist’ was not declared in this scope
21 | adjlist[a].push_back(b);
| ^~~~~~~
subgraphs.cpp:25:13: error: ‘vis’ was not declared in this scope
25 | if (vis[i] == false){
| ^~~