Run Time Error in Java

I’m a beginner in this site and I don’t understand why my submitted code has a runtime error? I tried it already in my pc and the program was runnin.

Welcome to CodeChef :wink:

First problem is that your class is in codechef package. Put in so called default package.

There is also problem with statements like:

System.out.println("Enter the number of rounds:");

please read FAQ to find out why - http://www.codechef.com/wiki/faq#How_does_Codechef_test_whether_my_solution_is_correct_or_not

Good luck

2 Likes

I see… thanks… :slight_smile: