0_0_25711629_24050.cpp:6:1: error: expected initializer before 'int'
int ans[maxn];
^
0_0_25711629_24050.cpp: In function 'int main()':
0_0_25711629_24050.cpp:34:30: error: 'num' was not declared in this scope
for(int i=0;i<n;++i) num[i]=rng61();
^
0_0_25711629_24050.cpp:42:17: error: 'ans' was not declared in this scope
ans[b[i].id]=ans[b[i+1].id];
^
0_0_25711629_24050.cpp:45:25: error: 'num' was not declared in this scope
nth_element(num,num+b[i].num,num+b[i+1].num);
^
0_0_25711629_24050.cpp:46:13: error: 'ans' was not declared in this scope
ans[b[i].id]=num[b[i].num];
^
0_0_25711629_24050.cpp:49:38: error: 'ans' was not declared in this scope
for(int i=0;i<m;++i) cout << ans[i] << (i==m-1?'\n':' ');
^
|