Code Submission

I’m new in CodeChef and submitted some easy programs but I am facing some problems while submission. Problem is that my code runs successfully, but when I submit, it says wrong answer ? Here is one of my simple code to add two numbers

import java.util.Scanner;

// Remember that the class name should be "Main" and should be "public".
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(;
int t = in.nextInt();
if( t < 1000){
for (int i = 0; i < t; i++){
int a = in.nextInt();
int b = in.nextInt();
if( ( a > 0 && a < 10000) && (b > 0 && b < 10000))
System.out.println(a + b);

This has happened two or three times with me.

Do you mean something like this?

I had the exact same question on my very first submission on CodeChef.

A “Successful Submission” means that the solution was successfully submitted to the judge.
The verdict your solution gets is completely unrelated.

My error looks like this

What should I do to solve it ?

Your code is incorrect :confused:

But it run successfully.