Whats the error? 2 testcases not clearing

import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int a[]=new int[n];
for(int i=0;i<n;i++){
a[i]=sc.nextInt();
}
int t=sc.nextInt();

	for(int i=0;i<n;i++){
		for(int j=i;j<n;j++){
			if((a[i]+a[j])==t){
				
				System.out.println(a[i]+" and "+a[j]);
				

			}
		}
	}

}

}

your submissions show you have scored 100! great job if this solves your doubt please mark it as resolved :slight_smile: