0_0_25295885_17334\Main.java:4: 错误: 需要class, interface或enum
public static void main(String[] args)
^
0_0_25295885_17334\Main.java:7: 错误: 需要class, interface或enum
int a;
^
0_0_25295885_17334\Main.java:8: 错误: 需要class, interface或enum
int sum;
^
0_0_25295885_17334\Main.java:9: 错误: 需要class, interface或enum
while(sc.hasNext())
^
0_0_25295885_17334\Main.java:11: 错误: 需要class, interface或enum
a = sc.nextInt();
^
0_0_25295885_17334\Main.java:12: 错误: 需要class, interface或enum
for(int i=1; i<=a; i++)
^
0_0_25295885_17334\Main.java:12: 错误: 需要class, interface或enum
for(int i=1; i<=a; i++)
^
0_0_25295885_17334\Main.java:12: 错误: 需要class, interface或enum
for(int i=1; i<=a; i++)
^
0_0_25295885_17334\Main.java:15: 错误: 需要class, interface或enum
}
^
0_0_25295885_17334\Main.java:17: 错误: 需要class, interface或enum
}
^
10 个错误
|