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_24271210_18393.cpp:6:10: error: array bound is not an integer constant before ']' token
 }s[maxn*3];
          ^
0_0_24271210_18393.cpp:7:11: error: array bound is not an integer constant before ']' token
 int a[maxn];
           ^
0_0_24271210_18393.cpp: In function 'int tree(int, int, int)':
0_0_24271210_18393.cpp:10:17: error: 's' was not declared in this scope
                 s[v].l=s[v].r=l;
                 ^
0_0_24271210_18393.cpp:11:27: error: 'a' was not declared in this scope
             return s[v].c=a[l];
                           ^
0_0_24271210_18393.cpp:13:9: error: 's' was not declared in this scope
         s[v].l=l;
         ^
0_0_24271210_18393.cpp: In function 'void updata(int, int, int)':
0_0_24271210_18393.cpp:19:9: error: 's' was not declared in this scope
         s[v].c+=num;
         ^
0_0_24271210_18393.cpp: In function 'int query(int, int, int)':
0_0_24271210_18393.cpp:32:11: error: 's' was not declared in this scope
     if(l==s[v].l&&r==s[v].r){
           ^
0_0_24271210_18393.cpp:35:14: error: 's' was not declared in this scope
     int mid=(s[v].l+s[v].r)/2;
              ^
0_0_24271210_18393.cpp: In function 'int main()':
0_0_24271210_18393.cpp:54:37: error: 'a' was not declared in this scope
                         scanf("%d",&a[i]);
                                     ^


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