Error in my program

#include<stdio.h>
int main()
{
int t,x,m,y,i,j,sum;
int a[10],min;
scanf("%d",&t);
while(t--)
{
scanf("%d%d%d",&m,&x,&y);
sum=0;
for(i=0;i<m;i++)
{
        scanf("%d",&a[i]);
}
for(i=0;i<m;i++)
{
    for(j=0;j<m-i-1;j++)
    {
        if(a[j]>a[j+1])
        {
            min=a[j];
            a[j]=a[j+1];
            a[j+1]=min;
        }
    }
}
for(i=0;i<m;i++)
{
    if(i!=0)
    {
        if(a[i]-a[i-1]>2*x*y)
    sum=sum+2*x*y+1;
    else
        sum=sum+a[i]-a[i-i];
    }
    else
    {
        if(a[0]-x*y>0)
        sum=2*x*y+1;
    else sum=a[i]+x*y;
    }
}
sum=100-sum;
if(sum>=0)
    printf("%d\n",sum);
else printf("0\n");
}
return 0;
}

Some small mistake I think…

first of all u did not specify your problem clearly .some of the error in your program is syntax error like you write (xy) but coding in c language its like (x*y).and some of the mistake is that u take (="")many time that is note accepted in c

Take this test case-

Input
1
10 1 1
1 2 3 4 5 6 7 8 9 100
Your Output
59 (Codechef IDE i.e. Judge)
Expected Output
88

Debug it in codechef IDE instead of your laptop’s ide.

My program is running correctly in my lapi and also giving correct output but code chef is not accepting it…

Appearing of ="" is due to improper formatting. Ans apearing of xy instead of x*y is due to markdown support given here. @puru15 try inserting your code between 3 ` ticks. e.g-

```
Hello World!
```