/ Vijos /

记录详情

Compile Error

/in/Main.java:1: error: class, interface, or enum expected
public static void main(String[] args) {
              ^
/in/Main.java:5: error: class, interface, or enum expected
		String b = new String();
		^
/in/Main.java:7: error: class, interface, or enum expected
		String allStrig = new String();
		^
/in/Main.java:9: error: class, interface, or enum expected
		Scanner scanner = new Scanner(System.in);
		^
/in/Main.java:10: error: class, interface, or enum expected
		allStrig = scanner.nextLine();
		^
/in/Main.java:11: error: class, interface, or enum expected
		String[] arrayString = allStrig.split(" ");
		^
/in/Main.java:13: error: class, interface, or enum expected
		a = arrayString[0];
		^
/in/Main.java:14: error: class, interface, or enum expected
		b = arrayString[1];
		^
/in/Main.java:15: error: class, interface, or enum expected
		int x = 0;
		^
/in/Main.java:16: error: class, interface, or enum expected
		for (int i = 0; i < a.length(); i++) {
		^
/in/Main.java:16: error: class, interface, or enum expected
		for (int i = 0; i < a.length(); i++) {
		                ^
/in/Main.java:16: error: class, interface, or enum expected
		for (int i = 0; i < a.length(); i++) {
		                                ^
/in/Main.java:20: error: class, interface, or enum expected
			}
			^
/in/Main.java:23: error: class, interface, or enum expected
	}
	^
14 errors

信息

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