user11202034
user11202034

Reputation:

Getting runtime error in basic code in code jam

/*package whatever //do not write package name here */

import java.util.*;

class Nested {
    public static void main (String[] args) {
        Scanner in=new Scanner(System.in);
        int t=in.nextInt();
        while(t-->0)
        {
            String input=in.nextLine();
            //solve(input);
        }
    }
    
}

I am passing

1

1

as input but it is showing me runtime error...don't know why because its working fine on geeksforgeeks ide

Upvotes: 1

Views: 267

Answers (1)

user11202034
user11202034

Reputation:

Code Jam accept classname as Solution That was the issue!

Thanks a lot everyone for helping!

Upvotes: 2

Related Questions