#include<stdio.h>
int main()
{
int t,a[10^6];
int i,j,temp;
printf("\n enter the no. of test cases");
scanf("%d",&t);
for(i=0;i<t;i++)
{
scanf("\n%d",&a[i]);
}
for(i=0;i<t;i++)
{
for(j=i+1;j<t;j++)
{
if(a[i]>a[j])
{
temp=a[i];
a[i]=a[j];
a[j]=temp;
}
}
}
for(i=0;i<t;i++)
{
printf("\n%d",a[i]);
}
}
hii. this is my second program in codechef. am a begineer. can anyone help me why am getting a run time error?? plz explain ur answer. it would be a great help for me to get more interest in programming.. thanks in advance..:)