F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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]));
                         ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-09-28 20:16:14, Gzip enabled