IS THIS QUESTION WRONG?

My issue

" For example,
median({3,1,2})=2, and median({3,4,1,2})=2".
Should’nt median of{3,1,2} be 1 and median of {3,4,1,2} be (1+4)/2=2.5 ???

My code

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	return 0;
}

Problem Link: DIFFMED Problem - CodeChef

@akhon
The question is not wrong .
To take median u have to sort the array then take the median like in case of 3 1 2 after sorting it will become 1 2 3 thus the median will be 2 in this case .