0_0_38526186_30310.cpp:4:7: error: 'N' does not name a type
const N=100005;
^
0_0_38526186_30310.cpp:5:8: error: 'N' was not declared in this scope
int in[N],f[N],q[N],vis[N],d[N],dd[N],z[N];
^
0_0_38526186_30310.cpp:5:13: error: 'N' was not declared in this scope
int in[N],f[N],q[N],vis[N],d[N],dd[N],z[N];
^
0_0_38526186_30310.cpp:5:18: error: 'N' was not declared in this scope
int in[N],f[N],q[N],vis[N],d[N],dd[N],z[N];
^
0_0_38526186_30310.cpp:5:25: error: 'N' was not declared in this scope
int in[N],f[N],q[N],vis[N],d[N],dd[N],z[N];
^
0_0_38526186_30310.cpp:5:30: error: 'N' was not declared in this scope
int in[N],f[N],q[N],vis[N],d[N],dd[N],z[N];
^
0_0_38526186_30310.cpp:5:36: error: 'N' was not declared in this scope
int in[N],f[N],q[N],vis[N],d[N],dd[N],z[N];
^
0_0_38526186_30310.cpp:5:41: error: 'N' was not declared in this scope
int in[N],f[N],q[N],vis[N],d[N],dd[N],z[N];
^
0_0_38526186_30310.cpp:7:14: error: 'N' was not declared in this scope
vector<int>g[N],g1[N],gg[N];
^
0_0_38526186_30310.cpp:7:20: error: 'N' was not declared in this scope
vector<int>g[N],g1[N],gg[N];
^
0_0_38526186_30310.cpp:7:26: error: 'N' was not declared in this scope
vector<int>g[N],g1[N],gg[N];
^
0_0_38526186_30310.cpp: In function 'void init()':
0_0_38526186_30310.cpp:12:3: error: 'd' was not declared in this scope
d[i]=0;
^
0_0_38526186_30310.cpp:13:3: error: 'dd' was not declared in this scope
dd[i]=0;
^
0_0_38526186_30310.cpp:14:3: error: 'f' was not declared in this scope
f[i]=i;
^
0_0_38526186_30310.cpp:15:3: error: 'in' was not declared in this scope
in[i]=0;
^
0_0_38526186_30310.cpp:16:3: error: 'vis' was not declared in this scope
vis[i]=0;
^
0_0_38526186_30310.cpp:17:3: error: 'g' was not declared in this scope
g[i].clear();
^
0_0_38526186_30310.cpp:18:3: error: 'g1' was not declared in this scope
g1[i].clear();
^
0_0_38526186_30310.cpp:19:3: error: 'gg' was not declared in this scope
gg[i].clear();
^
0_0_38526186_30310.cpp: In function 'void dfs1(long long int)':
0_0_38526186_30310.cpp:23:2: error: 'vis' was not declared in this scope
vis[x]=1;
^
0_0_38526186_30310.cpp:24:16: error: 'g' was not declared in this scope
for(int i=0;i<g[x].size();i++){
^
0_0_38526186_30310.cpp:27:2: error: 'q' was not declared in this scope
q[t++]=x;
^
0_0_38526186_30310.cpp: In function 'void dfs2(long long int, long long int)':
0_0_38526186_30310.cpp:31:3: error: 'd' was not declared in this scope
d[y]++;
^
0_0_38526186_30310.cpp:33:2: error: 'vis' was not declared in this scope
vis[x]=0,z[x]=ans,f[x]=y;
^
0_0_38526186_30310.cpp:33:11: error: 'z' was not declared in this scope
vis[x]=0,z[x]=ans,f[x]=y;
^
0_0_38526186_30310.cpp:33:20: error: 'f' was not declared in this scope
vis[x]=0,z[x]=ans,f[x]=y;
^
0_0_38526186_30310.cpp:34:16: error: 'g1' was not declared in this scope
for(int i=0;i<g1[x].size();i++){
^
0_0_38526186_30310.cpp: In function 'int main()':
0_0_38526186_30310.cpp:46:5: error: 'g' was not declared in this scope
g[a].push_back(b);
^
0_0_38526186_30310.cpp:47:5: error: 'g1' was not declared in this scope
g1[b].push_back(a);
^
0_0_38526186_30310.cpp:50:9: error: 'vis' was not declared in this scope
if(!vis[i]){
^
0_0_38526186_30310.cpp:55:8: error: 'vis' was not declared in this scope
if(vis[i]){
^
0_0_38526186_30310.cpp:56:11: error: 'q' was not declared in this scope
dfs2(q[i],q[i]);
^
0_0_38526186_30310.cpp:57:6: error: 'dd' was not declared in this scope
dd[ans]=d[q[i]];
^
0_0_38526186_30310.cpp:57:14: error: 'd' was not declared in this scope
dd[ans]=d[q[i]];
^
0_0_38526186_30310.cpp:63:28: error: 'g' was not declared in this scope
for(int j=0;j<g[i].size();j++){
^
0_0_38526186_30310.cpp:65:21: error: 'f' was not declared in this scope
if(f[tt]!=f[i]){
^
0_0_38526186_30310.cpp:67:25: error: 'in' was not declared in this scope
in[z[f[i]]]++;
^
0_0_38526186_30310.cpp:67:28: error: 'z' was not declared in this scope
in[z[f[i]]]++;
^
0_0_38526186_30310.cpp:68:25: error: 'gg' was not declared in this scope
gg[z[ff[tt]]].push_back(z[f[i]]);
^
0_0_38526186_30310.cpp:68:30: error: 'ff' was not declared in this scope
gg[z[ff[tt]]].push_back(z[f[i]]);
^
|