Check krdo sir ek baar zyada hi ajeeb hogya xd

#include
using namespace std;
int main()
{
int n,a[1000],m;
cin>>n;
for(int i=1;i<=n;i++)
cin>>a[i];
cout<<endl;
cin>>m;
for(int i=1;i<=n;i++)
{
for(int j=i;j<=n;j++)
{
for(int k=j;k<=n;k++)
{
if(a[i]+a[j]+a[k]==m)
{
if(a[i]!=a[j])
{
if(a[j]!=a[k])
{
if(a[i]<a[j])
{
if(a[j]<a[k])
cout<<a[i]<<", “<<a[j]<<” and “<<a[k]<<endl;
else if(a[i]<a[k] and a[j]>a[k])
cout<<a[i]<<”, “<<a[k]<<” and “<<a[j]<<endl;
else if(a[i]>a[k])
cout<<a[k]<<”, “<<a[i]<<” and “<<a[k]<<endl;
}
else if(a[j]<a[i])
{
if(a[i]<a[k])
cout<<a[j]<<”, “<<a[i]<<” and “<<a[k]<<endl;
else if(a[k]<a[i] and a[j]<a[k])
cout<<a[j]<<”, “<<a[k]<<” and “<<a[i]<<endl;
else if(a[j]>a[k])
cout<<a[k]<<”, “<<a[j]<<” and "<<a[i]<<endl;
}
}

			}
				
			}
			
		}
	}
}
return 0;

}

no reply sir…

sorry i missed your doubt

checking now

plz send the link of your code

it is very difficult to read this code due to poor indentation