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_39883912_16972.cpp: In lambda function:
0_0_39883912_16972.cpp:11:16: error: 'ls' was not declared in this scope
   11 |             if(ls[u] && !siz[ls[u]])
      |                ^~
0_0_39883912_16972.cpp:13:16: error: 'rs' was not declared in this scope
   13 |             if(rs[u] && !siz[rs[u]])
      |                ^~
0_0_39883912_16972.cpp:15:24: error: 'ls' was not declared in this scope
   15 |             siz[u]=siz[ls[u]]+siz[rs[u]]+1;
      |                        ^~
0_0_39883912_16972.cpp:15:35: error: 'rs' was not declared in this scope
   15 |             siz[u]=siz[ls[u]]+siz[rs[u]]+1;
      |                                   ^~
0_0_39883912_16972.cpp: In function 'int main()':
0_0_39883912_16972.cpp:22:30: error: 'h' was not declared in this scope
   22 |             ans=std::max(1ll*h[u]*siz[u],ans);
      |                              ^


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-12-23 12:35:10, Gzip enabled