QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#563188#8788. Page on vdome.comHuppupCompile Error//Java8301b2024-09-14 04:19:432024-09-14 04:19:43

Judging History

你现在查看的是最新测评结果

  • [2024-09-14 04:19:43]
  • 评测
  • [2024-09-14 04:19:43]
  • 提交

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);
        } else {
        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