0_0_30353840_7855.cpp:6:16: error: 'N' was not declared in this scope
int n,T,u,v,dp[N],dd[N],id[N][3];
^
0_0_30353840_7855.cpp:6:22: error: 'N' was not declared in this scope
int n,T,u,v,dp[N],dd[N],id[N][3];
^
0_0_30353840_7855.cpp:6:28: error: 'N' was not declared in this scope
int n,T,u,v,dp[N],dd[N],id[N][3];
^
0_0_30353840_7855.cpp:7:14: error: 'N' was not declared in this scope
vector<int>p[N];
^
0_0_30353840_7855.cpp: In function 'void add(int, int)':
0_0_30353840_7855.cpp:9:5: error: 'p' was not declared in this scope
p[u].push_back(v);
^
0_0_30353840_7855.cpp: In function 'void init(int)':
0_0_30353840_7855.cpp:15:5: error: 'p' was not declared in this scope
p[i].clear();
^
0_0_30353840_7855.cpp:16:5: error: 'id' was not declared in this scope
id[i][0]=id[i][1]=id[i][2]=w[i]=0;
^
0_0_30353840_7855.cpp:16:32: error: 'w' was not declared in this scope
id[i][0]=id[i][1]=id[i][2]=w[i]=0;
^
0_0_30353840_7855.cpp: In function 'void sp(int, int)':
0_0_30353840_7855.cpp:20:12: error: 'id' was not declared in this scope
while(ii<3)id[u][ii]=id[u][ii-1];
^
0_0_30353840_7855.cpp: In function 'void dfs(int, int)':
0_0_30353840_7855.cpp:23:5: error: 'dd' was not declared in this scope
dd[u]=dp[u]=1;
^
0_0_30353840_7855.cpp:23:11: error: 'dp' was not declared in this scope
dd[u]=dp[u]=1;
^
0_0_30353840_7855.cpp:24:17: error: 'p' was not declared in this scope
go(i,0,(int)p.size()-1){
^
0_0_30353840_7855.cpp:4:34: note: in definition of macro 'go'
#define go(i,a,b) for(int i=a;i<=b;i++)
^
0_0_30353840_7855.cpp:31:21: error: 'id' was not declared in this scope
if(dp[v]>dp[id[u][0]])sp(u,1),id[u][0]=v;
^
0_0_30353840_7855.cpp: In function 'void dfs1(int, int)':
0_0_30353840_7855.cpp:37:13: error: 'dp' was not declared in this scope
int tp1=dp[u],tp2=dd[u];
^
0_0_30353840_7855.cpp:38:17: error: 'p' was not declared in this scope
go(i,0,(int)p.size()-1){
^
0_0_30353840_7855.cpp:4:34: note: in definition of macro 'go'
#define go(i,a,b) for(int i=a;i<=b;i++)
^
0_0_30353840_7855.cpp:41:14: error: 'id' was not declared in this scope
dp[v]=v!=id[u][0]?dp[id[u][0]]+2:p.size()>1?dp[id[u][1]]+2:2;
^
0_0_30353840_7855.cpp:42:5: error: 'dd' was not declared in this scope
dd[v]=v!=
^
0_0_30353840_7855.cpp:43:13: error: invalid operands of types 'int' and 'void' to binary 'operator!='
dfs1(v,u);
^
|