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_36457759_13337.cpp: In function 'void tree_change(long long int, long long int, long long int)':
0_0_36457759_13337.cpp:78:4: error: 'p1' was not declared in this scope
    p1-=deep[top[u]]-deep[u];
    ^
0_0_36457759_13337.cpp:87:4: error: 'p2' was not declared in this scope
    p2+=deep[top[v]]-deep[v];
    ^
0_0_36457759_13337.cpp:97:3: error: 'p2' was not declared in this scope
   p2+=deep[u]-deep[v];
   ^
0_0_36457759_13337.cpp:104:3: error: 'p1' was not declared in this scope
   p1-=deep[v]-deep[u];
   ^


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-11-15 07:32:16, Gzip enabled