/ Vijos /

记录详情

Compile Error

/in/Main.java:1: error: class, interface, or enum expected
public static void main(String[] args) {
              ^
/in/Main.java:4: error: class, interface, or enum expected
		String allStr = scanner.nextLine();
		^
/in/Main.java:5: error: class, interface, or enum expected
		String[] aString = allStr.split(" ");
		^
/in/Main.java:6: error: class, interface, or enum expected
		int a = Integer.parseInt(aString[0]);
		^
/in/Main.java:7: error: class, interface, or enum expected
		int b = Integer.parseInt(aString[1]);
		^
/in/Main.java:9: error: class, interface, or enum expected
		int num = 0;
		^
/in/Main.java:10: error: class, interface, or enum expected
		for (int i = 1; i <= a; i++) {
		^
/in/Main.java:10: error: class, interface, or enum expected
		for (int i = 1; i <= a; i++) {
		                ^
/in/Main.java:10: error: class, interface, or enum expected
		for (int i = 1; i <= a; i++) {
		                        ^
/in/Main.java:14: error: class, interface, or enum expected
			while(j!=0){
			^
/in/Main.java:17: error: class, interface, or enum expected
				}
				^
/in/Main.java:19: error: class, interface, or enum expected
			}
			^
/in/Main.java:23: error: class, interface, or enum expected
	}
	^
13 errors

信息

递交者
类型
递交
题目
P1848 记数问题
语言
Java
递交时间
2017-11-22 16:12:08
评测时间
2017-11-22 16:12:08
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes