0_0_17586306_20387\Main.java:1: 错误: 非法字符: '#'
#include<cstdio>
^
0_0_17586306_20387\Main.java:1: 错误: 需要class, interface或enum
#include<cstdio>
^
0_0_17586306_20387\Main.java:2: 错误: 非法字符: '#'
#include<algorithm>
^
0_0_17586306_20387\Main.java:3: 错误: 非法字符: '#'
#define INF 1<<30
^
0_0_17586306_20387\Main.java:5: 错误: 需要class, interface或enum
int a[100005];
^
0_0_17586306_20387\Main.java:6: 错误: 需要class, interface或enum
int main(){
^
0_0_17586306_20387\Main.java:8: 错误: 需要class, interface或enum
scanf("%d",&t);
^
0_0_17586306_20387\Main.java:9: 错误: 需要class, interface或enum
_t = t - 1;
^
0_0_17586306_20387\Main.java:10: 错误: 需要class, interface或enum
while(t--){
^
0_0_17586306_20387\Main.java:12: 错误: 需要class, interface或enum
scanf("%d",&n);
^
0_0_17586306_20387\Main.java:13: 错误: 需要class, interface或enum
if(t != _t)printf("\n");
^
0_0_17586306_20387\Main.java:14: 错误: 需要class, interface或enum
int tag = 0;
^
0_0_17586306_20387\Main.java:15: 错误: 需要class, interface或enum
int sum = 0, ans = 0, tmp = 0,l = 0,r = 0;
^
0_0_17586306_20387\Main.java:16: 错误: 需要class, interface或enum
int maxnum = -INF, index;
^
0_0_17586306_20387\Main.java:17: 错误: 需要class, interface或enum
for(int i = 0; i < n; i++){
^
0_0_17586306_20387\Main.java:17: 错误: 需要class, interface或enum
for(int i = 0; i < n; i++){
^
0_0_17586306_20387\Main.java:17: 错误: 需要class, interface或enum
for(int i = 0; i < n; i++){
^
0_0_17586306_20387\Main.java:19: 错误: 需要class, interface或enum
if(a[i]>0)tag = 1;
^
0_0_17586306_20387\Main.java:20: 错误: 需要class, interface或enum
if(maxnum < a[i])maxnum = a[i], index = i;
^
0_0_17586306_20387\Main.java:21: 错误: 需要class, interface或enum
sum += a[i];
^
0_0_17586306_20387\Main.java:22: 错误: 需要class, interface或enum
if(sum < 0) sum = 0,tmp = i+1;
^
0_0_17586306_20387\Main.java:23: 错误: 需要class, interface或enum
if(ans < sum){
^
0_0_17586306_20387\Main.java:25: 错误: 需要class, interface或enum
r = i;
^
0_0_17586306_20387\Main.java:26: 错误: 需要class, interface或enum
ans = sum;
^
0_0_17586306_20387\Main.java:27: 错误: 需要class, interface或enum
}
^
0_0_17586306_20387\Main.java:31: 错误: 需要class, interface或enum
continue;
^
0_0_17586306_20387\Main.java:32: 错误: 需要class, interface或enum
}
^
0_0_17586306_20387\Main.java:34: 错误: 需要class, interface或enum
}
^
0_0_17586306_20387\Main.java:36: 错误: 需要class, interface或enum
}
^
29 个错误
|