vector<int> adjList[100005]; int vis[100005]; void dfs(int u) { vis[u] = 1; for(int i = 0; i < adjList[u].size(); i++) { int v = adjList[u][i]; if(!vis[v]) dfs(v); } }
Standard input is empty
prog.cpp:1:1: error: ‘vector’ does not name a type vector<int> adjList[100005]; ^~~~~~ prog.cpp: In function ‘void dfs(int)’: prog.cpp:7:24: error: ‘adjList’ was not declared in this scope for(int i = 0; i < adjList[u].size(); i++) ^~~~~~~
Standard output is empty