F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_39374010_16398\Main.java:1: 错误: 需要class, interface或enum
 1     #include <iostream>  
 ^
0_0_39374010_16398\Main.java:1: 错误: 非法字符: '#'
 1     #include <iostream>  
       ^
0_0_39374010_16398\Main.java:3: 错误: 需要class, interface或enum
 3     int main()  
 ^
0_0_39374010_16398\Main.java:6: 错误: 需要class, interface或enum
 6         int a;  //不需要数组,只需要一个输入变量
 ^
0_0_39374010_16398\Main.java:7: 错误: 需要class, interface或enum
 7         scanf("%d",&t);  
 ^
0_0_39374010_16398\Main.java:8: 错误: 需要class, interface或enum
 8         for (j=1;j<=t;j++)  
 ^
0_0_39374010_16398\Main.java:8: 错误: 需要class, interface或enum
 8         for (j=1;j<=t;j++)  
                    ^
0_0_39374010_16398\Main.java:8: 错误: 需要class, interface或enum
 8         for (j=1;j<=t;j++)  
                         ^
0_0_39374010_16398\Main.java:11: 错误: 需要class, interface或enum
11             int sum=0,maxsum=-1001,first =0, last = 0, temp = 1;  
^
0_0_39374010_16398\Main.java:12: 错误: 需要class, interface或enum
12             for (i=0;i<n;i++)  
^
0_0_39374010_16398\Main.java:12: 错误: 需要class, interface或enum
12             for (i=0;i<n;i++)  
                        ^
0_0_39374010_16398\Main.java:12: 错误: 需要class, interface或enum
12             for (i=0;i<n;i++)  
                            ^
0_0_39374010_16398\Main.java:15: 错误: 需要class, interface或enum
15                 sum += a;  
^
0_0_39374010_16398\Main.java:16: 错误: 需要class, interface或enum
16                 if (sum > maxsum)  
^
0_0_39374010_16398\Main.java:18: 错误: 需要class, interface或enum
18                     maxsum = sum;first = temp;last = i+1;  
                                    ^
0_0_39374010_16398\Main.java:18: 错误: 需要class, interface或enum
18                     maxsum = sum;first = temp;last = i+1;  
                                                 ^
0_0_39374010_16398\Main.java:19: 错误: 需要class, interface或enum
19                 }  
^
0_0_39374010_16398\Main.java:22: 错误: 需要class, interface或enum
22                     sum = 0;temp = i+2;  
                               ^
0_0_39374010_16398\Main.java:23: 错误: 需要class, interface或enum
23                 }  
^
0_0_39374010_16398\Main.java:27: 错误: 需要class, interface或enum
27             if (j!=t)  
^
0_0_39374010_16398\Main.java:30: 错误: 需要class, interface或enum
30             }  
^
0_0_39374010_16398\Main.java:34: 错误: 需要class, interface或enum
34     }  
^
22 个错误


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-30 11:05:51, Gzip enabled