记录详情

Compile Error

/in/Main.java:1: error: class, interface, or enum expected
public static int[] MergeList(int a[],int b[])
              ^
/in/Main.java:5: error: class, interface, or enum expected
                result = new int[a.length+b.length];
                ^
/in/Main.java:7: error: class, interface, or enum expected
                int i=0,j=0,k=0;
                ^
/in/Main.java:9: error: class, interface, or enum expected
                while(i<a.length && j<b.length)
                ^
/in/Main.java:12: error: class, interface, or enum expected
                        print(result);
                        ^
/in/Main.java:13: error: class, interface, or enum expected
                        System.out.println();
                        ^
/in/Main.java:14: error: class, interface, or enum expected
                    }else{
                    ^
/in/Main.java:16: error: class, interface, or enum expected
                    }
                    ^
/in/Main.java:20: error: class, interface, or enum expected
                while(j < b.length)
                ^
/in/Main.java:22: error: class, interface, or enum expected
                return result;
                ^
/in/Main.java:23: error: class, interface, or enum expected
           }
           ^
11 errors

信息

递交者
类型
自测
题目
A10-1 有序数组的合并
语言
Java
递交时间
2019-03-10 20:57:05
评测时间
2019-03-10 20:57:05
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes