Why is this code showing error while run when i tried to run on eclipse and shows NZEC error

import java.util.*;
// Remember that the class name should be “Main” and should be “public”.
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
for(int i = 1 ; i <= n ; i++){
int a = scan.nextInt();
int b = scan.nextInt();
System.out.println(a + b);
}
}
}