What's wrong in my code


#1

plz correct me asap..!

{ include bits/stdc++
using namespace std;
int main()
{
int test;
int static i=0;
unsigned long p[3],x[3];
cin>>test;
while(test--)
{

	for(int z=0;z<3;z++)
	cin>>x[z];
	sort(x,x+3);
	p[i]=x[1];
	i=i+1;
	}
for(int i=0;i<test;i++)
	cout<<p[i];

}
}

question is https://www.codechef.com/problems/FLOW017


#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.