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_38470153_24276.cpp:21:7: error: 'MAXXN' was not declared in this scope
 int a[MAXXN];
       ^
0_0_38470153_24276.cpp:25:6: error: 'MAXXN' was not declared in this scope
 }ans[MAXXN<<2];
      ^
0_0_38470153_24276.cpp: In function 'void push_up(int)':
0_0_38470153_24276.cpp:30:2: error: 'ans' was not declared in this scope
  ans[p].k = max(ans[p << 1].k, ans[(p << 1) | 1].k);
  ^
0_0_38470153_24276.cpp: In function 'void build(int, int, int)':
0_0_38470153_24276.cpp:34:2: error: 'ans' was not declared in this scope
  ans[p].l = l;
  ^
0_0_38470153_24276.cpp:38:14: error: 'a' was not declared in this scope
   ans[p].k = a[l];
              ^
0_0_38470153_24276.cpp: In function 'void up_date(int, int, int)':
0_0_38470153_24276.cpp:48:6: error: 'ans' was not declared in this scope
  if (ans[p].l == ans[p].r)
      ^
0_0_38470153_24276.cpp:53:13: error: 'ans' was not declared in this scope
  int mid = (ans[p].l + ans[p].r)>>1;
             ^
0_0_38470153_24276.cpp: In function 'int query(int, int, int)':
0_0_38470153_24276.cpp:60:11: error: 'ans' was not declared in this scope
  if (l <= ans[p].l && r >= ans[p].r)
           ^
0_0_38470153_24276.cpp:62:13: error: 'ans' was not declared in this scope
  int mid = (ans[p].l + ans[p].r)>>1;
             ^
0_0_38470153_24276.cpp: In function 'int main()':
0_0_38470153_24276.cpp:78: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 12:07:45, Gzip enabled