记录详情

Compile Error

/in/Main.java:5: error: class, interface, or enum expected
    public static void main(String[] args) {
                  ^
/in/Main.java:8: error: class, interface, or enum expected
        int N=s.nextInt();//??
        ^
/in/Main.java:10: error: class, interface, or enum expected
        int M=s.nextInt();//??
        ^
/in/Main.java:11: error: class, interface, or enum expected
        int fashu[]=new int[N+1];
        ^
/in/Main.java:12: error: class, interface, or enum expected
        int F1,F2;
        ^
/in/Main.java:13: error: class, interface, or enum expected
        for(int i=0;i<M;i++)
        ^
/in/Main.java:13: error: class, interface, or enum expected
        for(int i=0;i<M;i++)
                    ^
/in/Main.java:13: error: class, interface, or enum expected
        for(int i=0;i<M;i++)
                        ^
/in/Main.java:16: error: class, interface, or enum expected
            F2=s.nextInt();
            ^
/in/Main.java:17: error: class, interface, or enum expected
            if(F1<=N){
            ^
/in/Main.java:19: error: class, interface, or enum expected
            }
            ^
/in/Main.java:22: error: class, interface, or enum expected
    }
    ^
/in/Main.java:25: error: class, interface, or enum expected
        for(int i=1;i<FA.length;i++)
        ^
/in/Main.java:25: error: class, interface, or enum expected
        for(int i=1;i<FA.length;i++)
                    ^
/in/Main.java:25: error: class, interface, or enum expected
        for(int i=1;i<FA.length;i++)
                                ^
/in/Main.java:27: error: class, interface, or enum expected
            for(int j=i;j+i<FA.length;j++){
                        ^
/in/Main.java:27: error: class, interface, or enum expected
            for(int j=i;j+i<FA.length;j++){
                                      ^
/in/Main.java:29: error: class, interface, or enum expected
            }
            ^
/in/Main.java:32: error: class, interface, or enum expected
        for(int i:FA){
        ^
/in/Main.java:34: error: class, interface, or enum expected
        }
        ^
/in/Main.java:36: error: class, interface, or enum expected
    }
    ^
21 errors

信息

递交者
类型
递交
题目
我来打造合身的护甲-1
语言
Java
递交时间
2019-12-22 17:10:55
评测时间
2019-12-22 17:10:55
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes