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_19775548_18257.cpp: In function 'void build(int, int, int)':
0_0_19775548_18257.cpp:3:15: error: 'maxv' was not declared in this scope
     if(L==R)  maxv[k]=A[L];  
               ^
0_0_19775548_18257.cpp:3:23: error: 'A' was not declared in this scope
     if(L==R)  maxv[k]=A[L];  
                       ^
0_0_19775548_18257.cpp:9:9: error: 'maxv' was not declared in this scope
         maxv[k]=max(maxv[k*2],maxv[k*2+1]);   
         ^
0_0_19775548_18257.cpp:9:42: error: 'max' was not declared in this scope
         maxv[k]=max(maxv[k*2],maxv[k*2+1]);   
                                          ^
0_0_19775548_18257.cpp: In function 'int query(int, int, int, int, int)':
0_0_19775548_18257.cpp:15:23: error: 'INF' was not declared in this scope
     int m=(L+R)/2,ans=INF;  
                       ^
0_0_19775548_18257.cpp:16:29: error: 'maxv' was not declared in this scope
     if(a<=L && R<=b) return maxv[k];  
                             ^
0_0_19775548_18257.cpp:17:44: error: 'max' was not declared in this scope
     if(a<=m) ans=max(ans,query(k*2,L,m,a,b));  
                                            ^
0_0_19775548_18257.cpp:18:48: error: 'max' was not declared in this scope
     if(m<b)  ans=max(ans,query(k*2+1,m+1,R,a,b));  
                                                ^
0_0_19775548_18257.cpp: In function 'void update(int, int, int, int, int)':
0_0_19775548_18257.cpp:25:15: error: 'maxv' was not declared in this scope
     if(L==R)  maxv[k]=x;  
               ^
0_0_19775548_18257.cpp:31:9: error: 'maxv' was not declared in this scope
         maxv[k]=max(maxv[k*2],maxv[k*2+1]);   
         ^
0_0_19775548_18257.cpp:31:42: error: 'max' was not declared in this scope
         maxv[k]=max(maxv[k*2],maxv[k*2+1]);   
                                          ^
0_0_19775548_18257.cpp: In function 'int main()':
0_0_19775548_18257.cpp:38:30: error: 'scanf' was not declared in this scope
     while(~scanf("%d%d",&n,&m))  
                              ^
0_0_19775548_18257.cpp:43:25: error: 'A' was not declared in this scope
             scanf("%d",&A[i]);  
                         ^
0_0_19775548_18257.cpp:53:31: error: 'p' was not declared in this scope
                 scanf("%d%d",&p,&v);  
                               ^
0_0_19775548_18257.cpp:53:34: error: 'v' was not declared in this scope
                 scanf("%d%d",&p,&v);  
                                  ^
0_0_19775548_18257.cpp:58:31: error: 'qL' was not declared in this scope
                 scanf("%d%d",&qL,&qR);  
                               ^
0_0_19775548_18257.cpp:58:35: error: 'qR' was not declared in this scope
                 scanf("%d%d",&qL,&qR);  
                                   ^
0_0_19775548_18257.cpp:59:49: error: 'printf' was not declared in this scope
                 printf("%d\n",query(1,1,n,qL,qR));  
                                                 ^


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-10-05 21:37:47, Gzip enabled