0_0_33876967_19109.cpp:16:1: error: expected initializer before 'll'
ll dp[maxn];
^
0_0_33876967_19109.cpp: In function 'void dfs(int)':
0_0_33876967_19109.cpp:22:5: error: 'siz' was not declared in this scope
siz[x] = 1;
^
0_0_33876967_19109.cpp:28:21: error: 'dp' was not declared in this scope
mx = max(mx,dp[v]);
^
0_0_33876967_19109.cpp:30:5: error: 'dp' was not declared in this scope
dp[x] = n - siz[x];
^
0_0_33876967_19109.cpp: In function 'int main()':
0_0_33876967_19109.cpp:42:13: error: 'siz' was not declared in this scope
siz[i] = 0;
^
0_0_33876967_19109.cpp:43:13: error: 'dp' was not declared in this scope
dp[i] = 0;
^
0_0_33876967_19109.cpp:50:31: error: 'dp' was not declared in this scope
printf("%lld\n",ans + dp[1]);
^
|