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_34501925_17307.cpp: In function 'void radix_sort(int*)':
0_0_34501925_17307.cpp:33:3: error: no match for 'operator++' (operand type is 'std::vector<int>')
   ++radix_bucket[target[i]%base_num+1];
   ^
0_0_34501925_17307.cpp:35:18: error: no match for 'operator+=' (operand types are 'std::vector<int>' and 'std::vector<int>')
   radix_bucket[i]+=radix_bucket[i-1];
                  ^
0_0_34501925_17307.cpp:37:3: error: 'copies' was not declared in this scope
   copies[radix_bucket[target[i]%base_num+1]--]=target[i];
   ^
0_0_34501925_17307.cpp:37:44: error: no 'operator--(int)' declared for postfix '--' [-fpermissive]
   copies[radix_bucket[target[i]%base_num+1]--]=target[i];
                                            ^
0_0_34501925_17307.cpp:39:13: error: 'copies' was not declared in this scope
   target[i]=copies[i];
             ^
0_0_34501925_17307.cpp:42:3: error: no match for 'operator++' (operand type is 'std::vector<int>')
   ++radix_bucket[target[i]/base_num+1];
   ^
0_0_34501925_17307.cpp:44:18: error: no match for 'operator+=' (operand types are 'std::vector<int>' and 'std::vector<int>')
   radix_bucket[i]+=radix_bucket[i-1];
                  ^
0_0_34501925_17307.cpp:46:3: error: 'copies' was not declared in this scope
   copies[radix_bucket[target[i]/base_num+1]--]=target[i];
   ^
0_0_34501925_17307.cpp:46:44: error: no 'operator--(int)' declared for postfix '--' [-fpermissive]
   copies[radix_bucket[target[i]/base_num+1]--]=target[i];
                                            ^
0_0_34501925_17307.cpp:48:13: error: 'copies' was not declared in this scope
   target[i]=copies[i];
             ^


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-06-16 10:22:17, Gzip enabled