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_38470214_26432.cpp:20:7: error: 'maxn' was not declared in this scope
 int a[maxn];
       ^
0_0_38470214_26432.cpp:23:8: error: 'maxn' was not declared in this scope
 } tree[maxn << 2];
        ^
0_0_38470214_26432.cpp: In function 'void push_up(int)':
0_0_38470214_26432.cpp:27:2: error: 'tree' was not declared in this scope
  tree[p].k = max(tree[p << 1].k, tree[(p << 1) | 1].k);
  ^
0_0_38470214_26432.cpp: In function 'void build(int, int, int)':
0_0_38470214_26432.cpp:30:2: error: 'tree' was not declared in this scope
  tree[p].l = l;
  ^
0_0_38470214_26432.cpp:33:15: error: 'a' was not declared in this scope
   tree[p].k = a[l];
               ^
0_0_38470214_26432.cpp: In function 'void up_date(int, int, int)':
0_0_38470214_26432.cpp:42:6: error: 'tree' was not declared in this scope
  if (tree[p].l == tree[p].r) {
      ^
0_0_38470214_26432.cpp:46:11: error: 'tree' was not declared in this scope
  int m = (tree[p].l + tree[p].r) >> 1;
           ^
0_0_38470214_26432.cpp: In function 'int query(int, int, int)':
0_0_38470214_26432.cpp:53:11: error: 'tree' was not declared in this scope
  if (x <= tree[p].l && y >= tree[p].r) return tree[p].k;
           ^
0_0_38470214_26432.cpp:54:11: error: 'tree' was not declared in this scope
  int m = (tree[p].l + tree[p].r) >> 1;
           ^
0_0_38470214_26432.cpp: In function 'int main()':
0_0_38470214_26432.cpp:70:11: error: 'a' was not declared in this scope
    cin >> 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-06-29 11:43:31, Gzip enabled