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_26107627_10780.cpp: In function 'void query(int, int, int, int, int, int)':
0_0_26107627_10780.cpp:43:27: error: 'cur' was not declared in this scope
     if(l==r) {if(ar[l]>ar[cur])cur=l;return;}
                           ^
0_0_26107627_10780.cpp:48:57: error: too few arguments to function 'void query(int, int, int, int, int, int)'
         else if(tree[rt<<1|1]>k) query(m+1,r,rt<<1|1,L,R);
                                                         ^
0_0_26107627_10780.cpp:41:6: note: declared here
 void query(int l,int r,int rt,int L,int R,int k)
      ^
0_0_26107627_10780.cpp:51:49: error: too few arguments to function 'void query(int, int, int, int, int, int)'
     if(L<=m&&tree[rt<<1]>k)  query(l,m,rt<<1,L,R);
                                                 ^
0_0_26107627_10780.cpp:41:6: note: declared here
 void query(int l,int r,int rt,int L,int R,int k)
      ^
0_0_26107627_10780.cpp:52:53: error: too few arguments to function 'void query(int, int, int, int, int, int)'
     if(R>m&&tree[rt<<1|1]>k) query(m+1,r,rt<<1|1,L,R);
                                                     ^
0_0_26107627_10780.cpp:41:6: note: declared here
 void query(int l,int r,int rt,int L,int R,int k)
      ^


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-26 15:53:17, Gzip enabled