Problem subgraphs
User ryangohca
Submission Time 2024-12-23 16:38:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

subgraphs.cpp:5:22: error: array bound is not an integer constant before ‘]’ token
5 | vector<int>alist[maxn];
| ^
subgraphs.cpp:6:14: error: array bound is not an integer constant before ‘]’ token
6 | bool vis[maxn];
| ^
subgraphs.cpp:8:10: error: variable or field ‘dfs’ declared void
8 | void dfs(ll u){
| ^~
subgraphs.cpp:8:10: error: ‘ll’ was not declared in this scope
subgraphs.cpp: In function ‘int main()’:
subgraphs.cpp:21:3: error: ‘alist’ was not declared in this scope; did you mean ‘va_list’?
21 | alist[a].pb(b);
| ^~~~~
| va_list
subgraphs.cpp:26:7: error: ‘vis’ was not declared in this scope
26 | if(!vis[i]){
| ^~~
subgraphs.cpp:28:4: error: ‘dfs’ was not declared in this scope; did you mean ‘ffs’?
28 | dfs(i);
| ^~~
| ffs