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_27697232_28589.cpp:44:7: error: 'M' was not declared in this scope
 }tree[M];
       ^
0_0_27697232_28589.cpp: In function 'int Merge(int, int)':
0_0_27697232_28589.cpp:51:5: error: 'tree' was not declared in this scope
  if(tree[x].val<tree[y].val)
     ^
0_0_27697232_28589.cpp:53:2: error: 'tree' was not declared in this scope
  tree[x].r=Merge(tree[x].r,y);
  ^
0_0_27697232_28589.cpp: In function 'int Pop(int)':
0_0_27697232_28589.cpp:62:8: error: 'tree' was not declared in this scope
  int l=tree[x].l;
        ^
0_0_27697232_28589.cpp: In function 'int main()':
0_0_27697232_28589.cpp:82:5: error: 'tree' was not declared in this scope
     tree[tot].l=tree[tot].r=tree[tot].dis=0;
     ^
0_0_27697232_28589.cpp:90:8: error: 'i' was not declared in this scope
   for (i=0;i<n;++i){
        ^
0_0_27697232_28589.cpp:99:8: error: 'tree' was not declared in this scope
     if(tree[root[0]].val > tree[root[1]].val){
        ^
0_0_27697232_28589.cpp:115:5: error: 'tree' was not declared in this scope
     tree[root[i&1]].val+=x;
     ^
0_0_27697232_28589.cpp:119:5: error: 'tree' was not declared in this scope
     tree[rra].val=x;
     ^


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 07:47:44, Gzip enabled