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


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-07-02 14:48:09, Gzip enabled