记录详情

Compile Error

./Main.java:1: error: class, interface, enum, or record expected
 public static  void multiple() {
                ^
./Main.java:3: error: class, interface, enum, or record expected
        System.out.print("?????????");
        ^
./Main.java:4: error: class, interface, enum, or record expected
        int x1 = sc.nextInt();
        ^
./Main.java:5: error: class, interface, enum, or record expected
        int x2 = sc.nextInt();
        ^
./Main.java:6: error: class, interface, enum, or record expected
        while(x1<=0||x2<=0){
        ^
./Main.java:8: error: class, interface, enum, or record expected
            x1=sc.nextInt();
            ^
./Main.java:9: error: class, interface, enum, or record expected
            x2=sc.nextInt();
            ^
./Main.java:10: error: class, interface, enum, or record expected
        }
        ^
./Main.java:12: error: class, interface, enum, or record expected
        if (x1 > x2) {
        ^
./Main.java:13: error: class, interface, enum, or record expected
            for (int i = 1; i <= x2; i++) {
                            ^
./Main.java:13: error: class, interface, enum, or record expected
            for (int i = 1; i <= x2; i++) {
                                     ^
11 errors
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1079 xf1-2最大公倍数与最小公因数
比赛
2022年迎新赛(第二场)
语言
Java
递交时间
2022-08-27 19:19:48
评测时间
2022-08-27 19:19:48
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes