QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#563187 | #8788. Page on vdome.com | Huppup | Compile Error | / | / | Java11 | 284b | 2024-09-14 04:18:32 | 2024-09-14 04:18:34 |
Judging History
answer
import java.util.Scanner;
public class problem1 {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
if (N < 10) {
System.out.println(N+1);
}
System.out.println(10);
}
}
Details
problem.java:4: error: class problem1 is public, should be declared in a file named problem1.java public class problem1 { ^ 1 error