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_36750518_5912.cpp: In function 'int main()':
0_0_36750518_5912.cpp:139:5: error: redefinition of 'int main()'
 int main() {
     ^
0_0_36750518_5912.cpp:94:5: note: 'int main()' previously defined here
 int main() {
     ^
0_0_36750518_5912.cpp:143:16: error: 'tree' was not declared in this scope
         cin >> tree[0][i];
                ^
0_0_36750518_5912.cpp:144:9: error: 'sorted' was not declared in this scope
         sorted[i] = tree[0][i];
         ^
0_0_36750518_5912.cpp:146:10: error: 'sorted' was not declared in this scope
     sort(sorted + 1, sorted + n + 1);
          ^
0_0_36750518_5912.cpp:147:23: error: 'Build_tree' was not declared in this scope
     Build_tree(0, 1, n);
                       ^
0_0_36750518_5912.cpp:151:43: error: 'Query' was not declared in this scope
         int ans = Query(0, ql, qr, 1, n, k);
                                           ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-01-11 01:29:20, Gzip enabled