Find middle element problem

what is wrong with my code?
link for problem : Contest Page | CodeChef

#include
using namespace std;

int main() {
// your code goes here
int t;
cin>>t;
while(t–){
int dummy,m;

    for(int i=0; i<5; i++){
        cin>>dummy;
        if(i==2){
            m=dummy;
        }
    }
    cout<<m<<"\n";
}
return 0;

}

when sorted

1 Like

thanks , i didn’t saw that.

Yes that problem is also created with me and after i am understand find the midian of the array