0_0_31087281_28568.cpp:8:1: error: 'll' does not name a type
ll dp[maxn][2];
^
0_0_31087281_28568.cpp: In function 'void dfs(int, int)':
0_0_31087281_28568.cpp:24:9: error: 'dp' was not declared in this scope
dp[u][0]=max(dp[u][0],dp[u][0]+max(dp[v][0],dp[v][1]));
^
0_0_31087281_28568.cpp: In function 'int main()':
0_0_31087281_28568.cpp:35:9: error: 'dp' was not declared in this scope
dp[i][1]=A;
^
0_0_31087281_28568.cpp:51:25: error: 'dp' was not declared in this scope
printf("%lld\n",max(dp[root][0],dp[root][1]));
^
|