Problem subgraphs
User karenaureliaho
Submission Time 2026-07-09 10:37:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

subgraphs.cpp:5:25: error: array bound is not an integer constant before ‘]’ token
5 | vector <double> adj[MAXN];
| ^
subgraphs.cpp: In function ‘void dfs(int)’:
subgraphs.cpp:11:17: error: ‘adj’ was not declared in this scope
11 | for(int x : adj[u]){
| ^~~
subgraphs.cpp: In function ‘int main()’:
subgraphs.cpp:30:6: error: ‘adj’ was not declared in this scope
30 | adj[a].push_back(b);
| ^~~