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_35870131_22004.cpp: In function 'void qryr(int, int, int, int, int, int&)':
0_0_35870131_22004.cpp:48:31: error: 'b' was not declared in this scope
   while(k>0&&cct>0) ans[++ct]=b[l]-b[p],--k,--cct;//,printf("r:%d\n",l);
                               ^
0_0_35870131_22004.cpp: In function 'void qryl(int, int, int, int, int, int&)':
0_0_35870131_22004.cpp:61:31: error: 'b' was not declared in this scope
   while(k>0&&cct>0) ans[++ct]=b[p+1]-b[l],--k,--cct;//,printf("l:%d\n",l);
                               ^
0_0_35870131_22004.cpp: In function 'void work()':
0_0_35870131_22004.cpp:79:29: error: 'a' was not declared in this scope
  for(int i=1;i<=n;i++) read(a[i]),b[i]=a[i];
                             ^
0_0_35870131_22004.cpp:79:35: error: 'b' was not declared in this scope
  for(int i=1;i<=n;i++) read(a[i]),b[i]=a[i];
                                   ^
0_0_35870131_22004.cpp:80:12: error: 'b' was not declared in this scope
  std::sort(b+1,b+1+n);
            ^
0_0_35870131_22004.cpp:83:62: error: 'a' was not declared in this scope
   rebuild(root[i],root[i-1],1,n_,std::lower_bound(b+1,b+1+n_,a[i])-b);
                                                              ^


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-22 01:31:15, Gzip enabled