Submission not judged

#include
#include
using namespace std;
void nextcode(int a[1000],int key,int n)
{
int c;
for(int j=0;j<n;j++)
{

for(int i=j+1;i<n;i++)
{
	c=a[j]+a[i];
		if(key==c)
		{
			cout<<a[j]<<" and "<<a[i]<<endl;
		}
}
}

}
int main()
{
int n;
cin>>n;
int a[1000];
for(int i=0;i<n;i++)
{

cin>>a[i];
}
int key;
cin>>key;
sort(a,a+n);
nextcode(a,key,n);
return 0;
}

@AKSHET There may be some temporary technical issue. Please resubmit it after sometime and check. If still the problem continues, then drop a mail at [email protected] .

Ok thank you for your help

@AKSHET mark this doubt as resolved if you don’t have any further queries.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.