0_0_36152182_20592\Main.java:20: 错误: 需要')'
if(curSum curSum = array[i];
^
0_0_36152182_20592\Main.java:21: 错误: 有 'if', 但是没有 'else'
}else{ //否则继续累加array[i]
^
0_0_36152182_20592\Main.java:28: 错误: 非法的类型开始
return maxSum;
^
0_0_36152182_20592\Main.java:28: 错误: 需要';'
return maxSum;
^
0_0_36152182_20592\Main.java:31: 错误: 需要class, interface或enum
public static void main(String[] args){
^
0_0_36152182_20592\Main.java:34: 错误: 需要class, interface或enum
String input = null;
^
0_0_36152182_20592\Main.java:35: 错误: 需要class, interface或enum
try {
^
0_0_36152182_20592\Main.java:37: 错误: 需要class, interface或enum
} catch (IOException e) {
^
0_0_36152182_20592\Main.java:39: 错误: 需要class, interface或enum
}
^
0_0_36152182_20592\Main.java:41: 错误: 需要class, interface或enum
int[] array = new int[str.length]; //生成一个等长的Int数组
^
0_0_36152182_20592\Main.java:42: 错误: 需要class, interface或enum
for (int i = 0; i < str.length; i++) {
^
0_0_36152182_20592\Main.java:42: 错误: 需要class, interface或enum
for (int i = 0; i < str.length; i++) {
^
0_0_36152182_20592\Main.java:42: 错误: 需要class, interface或enum
for (int i = 0; i < str.length; i++) {
^
0_0_36152182_20592\Main.java:44: 错误: 需要class, interface或enum
}
^
0_0_36152182_20592\Main.java:46: 错误: 需要class, interface或enum
System.out.println(m.FindGreatestSumOfSubArray(array));
^
15 个错误
|