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_15972140_22675.cpp:2:7: error: 'NN' was not declared in this scope
 int a[NN],b[NN],lb,n,m;
       ^
0_0_15972140_22675.cpp:2:13: error: 'NN' was not declared in this scope
 int a[NN],b[NN],lb,n,m;
             ^
0_0_15972140_22675.cpp:6:7: error: 'NN' was not declared in this scope
 }tree[NN*25];
       ^
0_0_15972140_22675.cpp:8:10: error: 'NN' was not declared in this scope
 int root[NN];
          ^
0_0_15972140_22675.cpp: In function 'int search(int)':
0_0_15972140_22675.cpp:15:4: error: 'b' was not declared in this scope
 if(b[mid]<=x) l=mid;
    ^
0_0_15972140_22675.cpp: In function 'int build(int, int)':
0_0_15972140_22675.cpp:23:1: error: 'tree' was not declared in this scope
 tree[k].s=0;
 ^
0_0_15972140_22675.cpp: In function 'int change(int, int, int, int)':
0_0_15972140_22675.cpp:33:1: error: 'tree' was not declared in this scope
 tree[k]=tree[rt];
 ^
0_0_15972140_22675.cpp: In function 'int query(int, int, int, int, int)':
0_0_15972140_22675.cpp:68:3: error: 'tree' was not declared in this scope
 L=tree[L].l;
   ^
0_0_15972140_22675.cpp:74:6: error: 'tree' was not declared in this scope
 ans+=tree[tree[R].l].s-tree[tree[L].l].s;
      ^
0_0_15972140_22675.cpp:82:1: error: expected '}' before 'else'
 else return ans+tree[R].s-tree[L].s;
 ^
0_0_15972140_22675.cpp:82:17: error: 'tree' was not declared in this scope
 else return ans+tree[R].s-tree[L].s;
                 ^
0_0_15972140_22675.cpp: At global scope:
0_0_15972140_22675.cpp:84:1: error: expected declaration before '}' token
 }
 ^


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-11-16 15:30:00, Gzip enabled