source.cpp:10: warning: ignoring return value of "int scanf(const char*, …)", declared with attribute warn_unused_result ignoring return value of scanf
Let X[1..n] and Y[1..n] be two arrays, each containing n numbers already in sorted order. Give an O(lg n)-time algorithm to find the median of all 2n elements in arrays X and Y.