0_0_37655807_12355.cpp:3:9: error: macro names must be identifiers
#define 200005
^
0_0_37655807_12355.cpp:4:10: error: 'maxn' was not declared in this scope
int head[maxn],dis[maxn],cnt,n,m,k,dp[maxn][20],deep[maxn],gen[maxn];
^
0_0_37655807_12355.cpp:4:20: error: 'maxn' was not declared in this scope
int head[maxn],dis[maxn],cnt,n,m,k,dp[maxn][20],deep[maxn],gen[maxn];
^
0_0_37655807_12355.cpp:4:39: error: 'maxn' was not declared in this scope
int head[maxn],dis[maxn],cnt,n,m,k,dp[maxn][20],deep[maxn],gen[maxn];
^
0_0_37655807_12355.cpp:4:54: error: 'maxn' was not declared in this scope
int head[maxn],dis[maxn],cnt,n,m,k,dp[maxn][20],deep[maxn],gen[maxn];
^
0_0_37655807_12355.cpp:4:64: error: 'maxn' was not declared in this scope
int head[maxn],dis[maxn],cnt,n,m,k,dp[maxn][20],deep[maxn],gen[maxn];
^
0_0_37655807_12355.cpp:11:4: error: 'maxn' was not declared in this scope
}e[maxn<<1];
^
0_0_37655807_12355.cpp: In function 'void add(int, int)':
0_0_37655807_12355.cpp:14:2: error: 'e' was not declared in this scope
e[cnt].to=to;
^
0_0_37655807_12355.cpp:16:14: error: 'head' was not declared in this scope
e[cnt].next=head[u];
^
0_0_37655807_12355.cpp: In function 'void dfs(int, int)':
0_0_37655807_12355.cpp:21:2: error: 'deep' was not declared in this scope
deep[root]=deep[fa]+1;
^
0_0_37655807_12355.cpp:22:2: error: 'dp' was not declared in this scope
dp[root][0]=fa;
^
0_0_37655807_12355.cpp:26:12: error: 'head' was not declared in this scope
for(int i=head[root];i!=-1;i=e[i].next){
^
0_0_37655807_12355.cpp:26:31: error: 'e' was not declared in this scope
for(int i=head[root];i!=-1;i=e[i].next){
^
0_0_37655807_12355.cpp: In function 'int lca(int, int)':
0_0_37655807_12355.cpp:36:5: error: 'deep' was not declared in this scope
if(deep[a]<deep[b])swap(a,b);
^
0_0_37655807_12355.cpp:38:6: error: 'deep' was not declared in this scope
if(deep[a]-(1<<i)>=deep[b])a=dp[a][i];//TODO
^
0_0_37655807_12355.cpp:38:32: error: 'dp' was not declared in this scope
if(deep[a]-(1<<i)>=deep[b])a=dp[a][i];//TODO
^
0_0_37655807_12355.cpp:44:7: error: 'dp' was not declared in this scope
if(dp[a][i]!=dp[b][i])
^
0_0_37655807_12355.cpp:50:10: error: 'dp' was not declared in this scope
return dp[a][0];
^
0_0_37655807_12355.cpp: In function 'int main()':
0_0_37655807_12355.cpp:60:10: error: 'deep' was not declared in this scope
memset(deep,0,sizeof(deep));
^
0_0_37655807_12355.cpp:62:10: error: 'head' was not declared in this scope
memset(head,-1,sizeof(head));
^
0_0_37655807_12355.cpp:63:10: error: 'dp' was not declared in this scope
memset(dp,0,sizeof(dp));
^
0_0_37655807_12355.cpp:64:10: error: 'gen' was not declared in this scope
memset(gen,0,sizeof(gen));
^
|