记录详情

Compile Error

/in/Main.java:1: error: class, interface, or enum expected
Scanner sc=new Scanner(System.in);
^
/in/Main.java:2: error: class, interface, or enum expected
		int n=sc.nextInt();
		^
/in/Main.java:3: error: class, interface, or enum expected
		short a=sc.nextShort();
		^
/in/Main.java:4: error: class, interface, or enum expected
		short b[]=new short[n-1];
		^
/in/Main.java:5: error: class, interface, or enum expected
		for(int i=0;i<n-1;i++){
		^
/in/Main.java:5: error: class, interface, or enum expected
		for(int i=0;i<n-1;i++){
		            ^
/in/Main.java:5: error: class, interface, or enum expected
		for(int i=0;i<n-1;i++){
		                  ^
/in/Main.java:7: error: class, interface, or enum expected
			System.out.print(b[i]+" ");
			^
/in/Main.java:8: error: class, interface, or enum expected
		}
		^
/in/Main.java:10: error: class, interface, or enum expected
	}
	^
10 errors

信息

递交者
类型
递交
题目
1-3 序列循环左移
语言
Java
递交时间
2018-12-07 14:55:43
评测时间
2018-12-07 14:55:43
评测机
分数
0
总耗时
479ms
峰值内存
20.984 MiB