Problem | subgraphs |
---|---|
User | Clarissa |
Submission Time | 2023-11-16 10:32:13 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
subgraphs.cpp: In function ‘void dfs(int)’:
subgraphs.cpp:8:15: error: invalid types ‘bool[int]’ for array subscript
8 | if (visited[x]) return;
| ^
subgraphs.cpp:9:11: error: invalid types ‘bool[int]’ for array subscript
9 | visited[x]=true;
| ^
subgraphs.cpp:10:6: error: declaration of ‘auto i’ has no initializer
10 | for(auto i;adj[x] dfs[i]);
| ^~~~
subgraphs.cpp:10:19: error: expected ‘;’ before ‘dfs’
10 | for(auto i;adj[x] dfs[i]);
| ^~~~
| ;
subgraphs.cpp: In function ‘int main()’:
subgraphs.cpp:17:15: error: expected ‘;’ before ‘<’ token
17 | for(int i=0,i<e;i++){
| ^
| ;
subgraphs.cpp:17:15: error: expected primary-expression before ‘<’ token
subgraphs.cpp:19:10: error: request for member ‘push_back’ in ‘adj.std::vector<int>::operator[](((std::vecto