0_0_20666071_28770\Main.java:1: 错误: 需要class, interface或enum
public static void main(String[] args)
^
0_0_20666071_28770\Main.java:4: 错误: 需要class, interface或enum
int t = Integer.valueOf(scanner.nextLine());
^
0_0_20666071_28770\Main.java:5: 错误: 需要class, interface或enum
for (int i = 0; i < t; i++)
^
0_0_20666071_28770\Main.java:5: 错误: 需要class, interface或enum
for (int i = 0; i < t; i++)
^
0_0_20666071_28770\Main.java:5: 错误: 需要class, interface或enum
for (int i = 0; i < t; i++)
^
0_0_20666071_28770\Main.java:8: 错误: 需要class, interface或enum
Scanner scanner1 = new Scanner(line);
^
0_0_20666071_28770\Main.java:9: 错误: 需要class, interface或enum
int n = scanner1.nextInt();
^
0_0_20666071_28770\Main.java:10: 错误: 需要class, interface或enum
int[] input = new int[n];
^
0_0_20666071_28770\Main.java:11: 错误: 需要class, interface或enum
for (int j = 0; j < n; j++)
^
0_0_20666071_28770\Main.java:11: 错误: 需要class, interface或enum
for (int j = 0; j < n; j++)
^
0_0_20666071_28770\Main.java:11: 错误: 需要class, interface或enum
for (int j = 0; j < n; j++)
^
0_0_20666071_28770\Main.java:14: 错误: 需要class, interface或enum
}
^
0_0_20666071_28770\Main.java:17: 错误: 需要class, interface或enum
int maxEnd = 0;
^
0_0_20666071_28770\Main.java:18: 错误: 需要class, interface或enum
int maxSum = input[0];
^
0_0_20666071_28770\Main.java:19: 错误: 需要class, interface或enum
int currStart = 0;
^
0_0_20666071_28770\Main.java:20: 错误: 需要class, interface或enum
int currSum = 0;
^
0_0_20666071_28770\Main.java:21: 错误: 需要class, interface或enum
for (int currEnd = 0; currEnd < input.length; currEnd++)
^
0_0_20666071_28770\Main.java:21: 错误: 需要class, interface或enum
for (int currEnd = 0; currEnd < input.length; currEnd++)
^
0_0_20666071_28770\Main.java:21: 错误: 需要class, interface或enum
for (int currEnd = 0; currEnd < input.length; currEnd++)
^
0_0_20666071_28770\Main.java:24: 错误: 需要class, interface或enum
if (currSum <= 0)
^
0_0_20666071_28770\Main.java:28: 错误: 需要class, interface或enum
else
^
0_0_20666071_28770\Main.java:31: 错误: 需要class, interface或enum
currSum = 0;
^
0_0_20666071_28770\Main.java:32: 错误: 需要class, interface或enum
}
^
0_0_20666071_28770\Main.java:39: 错误: 需要class, interface或enum
maxEnd = currEnd;
^
0_0_20666071_28770\Main.java:40: 错误: 需要class, interface或enum
maxSum = currSum;
^
0_0_20666071_28770\Main.java:41: 错误: 需要class, interface或enum
}
^
0_0_20666071_28770\Main.java:45: 错误: 需要class, interface或enum
System.out.println(maxSum + " " + (maxStart + 1) + " " + (maxEnd + 1));
^
0_0_20666071_28770\Main.java:46: 错误: 需要class, interface或enum
if (i != t - 1)
^
0_0_20666071_28770\Main.java:48: 错误: 需要class, interface或enum
}
^
29 个错误
|