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_29592717_28653.cpp: In function 'void pushup(int)':
0_0_29592717_28653.cpp:39:30: error: 'max' was not declared in this scope
     mx[x]=max(max(mx[l],mx[r]),val[x]);
                              ^
0_0_29592717_28653.cpp:39:38: error: 'max' was not declared in this scope
     mx[x]=max(max(mx[l],mx[r]),val[x]);
                                      ^
0_0_29592717_28653.cpp:39:38: error: redeclaration of '<typeprefixerror>max'
0_0_29592717_28653.cpp:39:30: note: previous declaration '<typeprefixerror>max'
     mx[x]=max(max(mx[l],mx[r]),val[x]);
                              ^
0_0_29592717_28653.cpp: In function 'void pushdown(int)':
0_0_29592717_28653.cpp:47:29: error: 'swap' was not declared in this scope
         swap(c[x][0],c[x][1]);
                             ^
0_0_29592717_28653.cpp: In function 'void query(int, int)':
0_0_29592717_28653.cpp:110:55: error: 'printf' was not declared in this scope
     rever(u); access(v); splay(v); printf("%d\n",mx[v]);
                                                       ^
0_0_29592717_28653.cpp: In function 'int main()':
0_0_29592717_28653.cpp:113:26: error: 'scanf' was not declared in this scope
     while (~scanf("%d",&n))
                          ^
0_0_29592717_28653.cpp:133:59: error: 'puts' was not declared in this scope
                 if (!judge(u,v)) link(u,v); else puts("-1");
                                                           ^
0_0_29592717_28653.cpp:137:65: error: 'puts' was not declared in this scope
                 if (judge(u,v) && u!=v) cut(u,v); else puts("-1");
                                                                 ^
0_0_29592717_28653.cpp:141:62: error: 'puts' was not declared in this scope
                 if (judge(u,v)) add(u,v,w);    else puts("-1");
                                                              ^
0_0_29592717_28653.cpp:145:59: error: 'puts' was not declared in this scope
                 if (judge(u,v)) query(u,v); else puts("-1");
                                                           ^
0_0_29592717_28653.cpp:148:20: error: 'printf' was not declared in this scope
         printf("\n");
                    ^


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-16 18:25:19, Gzip enabled