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_17530479_13184.cpp:17:11: error: expected primary-expression before ']' token
 }stu[MAXN*];
           ^
0_0_17530479_13184.cpp: In function 'void pushup(int)':
0_0_17530479_13184.cpp:20:2: error: 'stu' was not declared in this scope
  stu[u].maxn=max(stu[2*u].maxn,stu[2*u+1].maxn);
  ^
0_0_17530479_13184.cpp: In function 'void build(int, int, int)':
0_0_17530479_13184.cpp:24:2: error: 'stu' was not declared in this scope
  stu[u].lef=l;stu[u].rig=r;
  ^
0_0_17530479_13184.cpp: In function 'int query(int, int, int)':
0_0_17530479_13184.cpp:40:11: error: 'stu' was not declared in this scope
  int mid=(stu[u].lef+stu[u].rig)/2;
           ^
0_0_17530479_13184.cpp: In function 'void update(int, int, int)':
0_0_17530479_13184.cpp:48:11: error: 'stu' was not declared in this scope
  int mid=(stu[u].lef+stu[u].rig)/2;
           ^


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 16:21:47, Gzip enabled