Problem | subgraphs |
---|---|
User | sussygoose |
Submission Time | 2025-08-22 13:59:33 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
subgraphs.cpp:3:7: error: ‘MAXN’ does not name a type
3 | const MAXN = 1e6 + 5;
| ^~~~
subgraphs.cpp:4:17: error: ‘MAXN’ was not declared in this scope
4 | vector<int> adj[MAXN];
| ^~~~
subgraphs.cpp:5:10: error: ‘MAXN’ was not declared in this scope
5 | bool vis[MAXN];
| ^~~~
subgraphs.cpp: In function ‘void dfs(int)’:
subgraphs.cpp:8:5: error: ‘vis’ was not declared in this scope
8 | vis[x] = true;
| ^~~
subgraphs.cpp:9:17: error: ‘adj’ was not declared in this scope
9 | for (int i: adj[x]) {
| ^~~
subgraphs.cpp: In function ‘int main()’:
subgraphs.cpp:22:9: error: ‘adj’ was not declared in this scope
22 | adj[a].push_back(b);
| ^~~
subgraphs.cpp:27:14: error: ‘vis’ was not declared in this scope
27 | if (!vis[i]) {
| ^~~