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_27777543_30752.cpp: In function 'void quick_sort(int*, int, int)':
0_0_27777543_30752.cpp:9:7: error: 'xx' was not declared in this scope
       xx = rand()%(r - l + 1);
       ^
0_0_27777543_30752.cpp:10:14: error: 'll' was not declared in this scope
       swap(a[ll],a[])
              ^
0_0_27777543_30752.cpp:10:20: error: expected primary-expression before ']' token
       swap(a[ll],a[])
                    ^
0_0_27777543_30752.cpp:12:18: error: 'rr' was not declared in this scope
       while(ll < rr){
                  ^
0_0_27777543_30752.cpp:13:24: error: 'key' was not declared in this scope
         while(a[rr] >= key && ll < rr) rr--; a[ll] = a[rr];
                        ^
0_0_27777543_30752.cpp:14:24: error: 'key' was not declared in this scope
         while(a[ll] <= key && ll < rr) ll++; a[rr] = a[ll];
                        ^
0_0_27777543_30752.cpp:16:15: error: 'key' was not declared in this scope
       a[ll] = key;
               ^


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-27 01:15:43, Gzip enabled