#ifndef RECURSION11_H_
#define RECURSION11_H_
#include <iostream>
#include <algorithm>
using namespace std;
int solve( int n, int arr[ ] , int k) ;
int median( int arr[ ] , int sz) {
int m = sz / 2 ;
nth_element( arr, arr + m, arr + sz) ;
return arr[ m] ;
}
int main( ) {
int n, k;
cin >> n >> k;
int * arr = new int [ n] ;
for ( int i = 0 ; i < n; ++ i) {
cin >> arr[ i] ;
}
cout << solve( n, arr, k) << "\n " ;
}
#endif // RECURSION11_H_
I2lmbmRlZiBSRUNVUlNJT04xMV9IXwojZGVmaW5lIFJFQ1VSU0lPTjExX0hfCgojaW5jbHVkZSA8aW9zdHJlYW0+CiNpbmNsdWRlIDxhbGdvcml0aG0+Cgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IHNvbHZlKGludCBuLCBpbnQgYXJyW10sIGludCBrKTsKCmludCBtZWRpYW4oaW50IGFycltdLCBpbnQgc3opIHsKCWludCBtID0gc3ogLyAyOwoJbnRoX2VsZW1lbnQoYXJyLCBhcnIgKyBtLCBhcnIgKyBzeik7CglyZXR1cm4gYXJyW21dOwp9CgppbnQgbWFpbigpIHsKICBpbnQgbiwgazsKICBjaW4gPj4gbiA+PiBrOwoKICBpbnQqIGFyciA9IG5ldyBpbnRbbl07CiAgZm9yIChpbnQgaSA9IDA7IGkgPCBuOyArK2kpIHsKICAgIGNpbiA+PiBhcnJbaV07CiAgfQoKICBjb3V0IDw8IHNvbHZlKG4sIGFyciwgaykgPDwgIlxuIjsKfQoKI2VuZGlmIC8vIFJFQ1VSU0lPTjExX0hf
compilation info
/usr/bin/ld: /home/MN6YnW/ccvTa2BQ.o: in function `main':
prog.cpp:(.text.startup+0x91): undefined reference to `solve(int, int*, int)'
collect2: error: ld returned 1 exit status
stdout