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_24668338_16909.cpp: In function 'void rotate(int)':
0_0_24668338_16909.cpp:21:214: error: expected ')' before ']' token
 inline void rotate(int o){int fa=t[o].fa,pa=t[fa].fa,d1=Identify(o),d2=Identify(fa),b=t[o].c[d1^1];t[o].fa=pa;if(!isroot(fa))t[pa].c[d2]=o;Connect(fa,b,d1);Connect(o,fa,d1^1);maintain(fa);maintain(o);if(t[o].fa==o]for(;;);}
                                                                                                                                                                                                                      ^
0_0_24668338_16909.cpp:21:214: error: expected primary-expression before ']' token
0_0_24668338_16909.cpp:21:221: error: expected primary-expression before ')' token
 inline void rotate(int o){int fa=t[o].fa,pa=t[fa].fa,d1=Identify(o),d2=Identify(fa),b=t[o].c[d1^1];t[o].fa=pa;if(!isroot(fa))t[pa].c[d2]=o;Connect(fa,b,d1);Connect(o,fa,d1^1);maintain(fa);maintain(o);if(t[o].fa==o]for(;;);}
                                                                                                                                                                                                                             ^


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-17 02:43:06, Gzip enabled