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_25711668_6923.cpp:6:1: error: expected initializer before 'int'
 int ans[maxn];
 ^
0_0_25711668_6923.cpp: In function 'int main()':
0_0_25711668_6923.cpp:33:30: error: 'num' was not declared in this scope
         for(int i=0;i<n;++i) num[i]=rng61();
                              ^
0_0_25711668_6923.cpp:41:17: error: 'ans' was not declared in this scope
                 ans[b[i].id]=ans[b[i+1].id];
                 ^
0_0_25711668_6923.cpp:44:25: error: 'num' was not declared in this scope
             nth_element(num,num+b[i].num,num+b[i+1].num);
                         ^
0_0_25711668_6923.cpp:45:13: error: 'ans' was not declared in this scope
             ans[b[i].id]=num[b[i].num];
             ^
0_0_25711668_6923.cpp:48:38: error: 'ans' was not declared in this scope
         for(int i=0;i<m;++i) cout << ans[i] << (i==m-1?'\n':' ');
                                      ^


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 09:58:11, Gzip enabled