0_0_36830789_15623\Main.java:1: 错误: 类HDU1000是公共的, 应在名为 HDU1000.java 的文件中声明
import java.util.Scanner;public class HDU1000 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a,b; while(sc.hasNextInt()) { a=sc.nextInt(); b=sc.nextInt(); System.out.println(a+b); } sc.close(); } }
^
1 个错误
|