记录详情

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:09
评测时间
2019-03-10 20:57:09
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes