QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#563186#8788. Page on vdome.comHuppupCompile Error//Java11279b2024-09-14 04:17:452024-09-14 04:17:46

Judging History

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

  • [2024-09-14 04:17:46]
  • 评测
  • [2024-09-14 04:17:45]
  • 提交

answer

import java.util.Scanner;

public class problem1 {
    public static 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:5: error: invalid method declaration; return type required
    public static main(String[] args) {
                  ^
1 error