1_783_1583_13337.cpp:8:14: error: array bound is not an integer constant before ']' token
bool vis[maxn];
^
1_783_1583_13337.cpp:9:24: error: array bound is not an integer constant before ']' token
std::vector<int> g[maxn];
^
1_783_1583_13337.cpp: In function 'int dfs(int, int)':
1_783_1583_13337.cpp:12:2: error: 'vis' was not declared in this scope
vis[node] = 1;
^
1_783_1583_13337.cpp:14:15: error: 'g' was not declared in this scope
for(auto it: g[node]) {
^
1_783_1583_13337.cpp: In function 'int main(int, char**)':
1_783_1583_13337.cpp:39:4: error: 'g' was not declared in this scope
g[u].push_back(v);
^
1_783_1583_13337.cpp:42:10: error: 'vis' was not declared in this scope
memset(vis, 0, sizeof(vis));
^
1_783_1583_13337.cpp:54:4: error: 'g' was not declared in this scope
g[i].clear();
^
|