0_0_22703999_7262.cpp:2:22: error: 'maxn' was not declared in this scope
int T,n,k,u,v,ans,sz[maxn];
^
0_0_22703999_7262.cpp:3:1: error: 'vector' does not name a type
vector<int>G[maxn];
^
0_0_22703999_7262.cpp: In function 'void dfs(int, int)':
0_0_22703999_7262.cpp:5:5: error: 'sz' was not declared in this scope
sz[u]=1;
^
0_0_22703999_7262.cpp:6:18: error: 'G' was not declared in this scope
for (auto& v:G[u]){
^
0_0_22703999_7262.cpp: In function 'int main()':
0_0_22703999_7262.cpp:14:16: error: 'read' was not declared in this scope
for (read(T);T--;){
^
0_0_22703999_7262.cpp:16:32: error: 'sz' was not declared in this scope
for (int i=1;i<=n;i++) sz[i]=0,G[i].clear();
^
0_0_22703999_7262.cpp:16:40: error: 'G' was not declared in this scope
for (int i=1;i<=n;i++) sz[i]=0,G[i].clear();
^
0_0_22703999_7262.cpp:19:13: error: 'G' was not declared in this scope
G[u].push_back(v);
^
|