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_24385336_8897.cpp:8:9: error: expected primary-expression before ']' token
 }a[maxn*];//线段树; 
         ^
0_0_24385336_8897.cpp: In function 'void Bulid(int, int, int)':
0_0_24385336_8897.cpp:43:2: error: 'a' was not declared in this scope
  a[rt].l=s;a[rt].r=t;
  ^
0_0_24385336_8897.cpp: In function 'void Work(int, int, int)':
0_0_24385336_8897.cpp:52:5: error: 'a' was not declared in this scope
  if(a[rt].l==a[rt].r){
     ^
0_0_24385336_8897.cpp:57:5: error: 'a' was not declared in this scope
  if(a[x].sum>=k)Work(x,num,k);
     ^
0_0_24385336_8897.cpp:61:2: error: 'a' was not declared in this scope
  a[rt].sum=a[x].sum+a[y].sum;
  ^


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-06-29 12:34:20, Gzip enabled