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_30929066_27915.cpp: In function 'void Build(int, int, int)':
0_0_30929066_27915.cpp:13:22: error: 'sorted' was not declared in this scope
   if (tree[dep][i] < sorted[mid]) same--;
                      ^
0_0_30929066_27915.cpp:17:22: error: 'sorted' was not declared in this scope
   if (tree[dep][i] < sorted[mid]) tree[dep + 1][lpos++] = tree[dep][i];
                      ^
0_0_30929066_27915.cpp: In function 'int Query(int, int, int, int, int, int)':
0_0_30929066_27915.cpp:28:14: error: return-statement with no value, in function returning 'int' [-fpermissive]
  if (l == r) return ;
              ^
0_0_30929066_27915.cpp: In function 'int main()':
0_0_30929066_27915.cpp:37:17: error: 'sorted' was not declared in this scope
    scanf("%d", &sorted[i]);
                 ^
0_0_30929066_27915.cpp:45:42: error: expected ')' before ';' token
    printf("%d\n", Query(1, n, l, r, 0, 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 08:40:10, Gzip enabled