I am getting wrong answer (CLEANUP)

I am getting wrong answer for this code while submitting it .it is showing proper out put in ide mode
My submission https://www.codechef.com/problems/CLEANUP
#include<stdio.h>

int main()
{
int temp,k, d,c=0,i,j,n,h,p=1,m,m1[2000],m2[2000];
int m3[2000];
scanf("%d",&d);

do
{
scanf("%d%d",&n,&m);

for(i=1;i<=m;i++)
scanf("%d",&m1[i]);

for(i=1;i<=m;i++)
{
for(j=i+1;j<=m;j++)
{
if(m1[i]>m1[j])
{
temp=m1[i];
m1[i]=m1[j];
m1[j]=temp;
}
}
}

i=1;
k=1;
for(j=1;j<=n;j++)
{
if(j==m1[i])
{
i++;
goto label;
}
m2[k]=j;
k++;
continue;
label:
m2[k]=0;
k++;
}
p=1;
for(k=1;k<=n;k++)
{
if(m2[k]==0)
{
goto label1;
}
printf("%d ",m2[k]);
m3[p]=k;
p++;
k++;
while(m2[k]==0)
{
k++;
}

continue;
label1:
h=1;
}
p=1;

printf("\n");
for(j=1;j<=n;j++)
{
if(j==m3[p])
{
p++;
goto label2;
}

if(m2[j]==0)
{
goto label2;
}
printf("%d “,m2[j]);
label2:
h++;
}
printf(”\n");
c++;
}
while(d!=c);
return 0;
}

Please format your code or link to your submission :slight_smile:

Edit:

No, that’s just a link to the Problem :slight_smile: Here’s a link to your latest submission.

1 Like

Yes
Plz help me I am trying it for many days

And this is why I wish this forum have a downvote button so people can downvote this thread into obscurity.