0_0_16894113_24413\Main.java:31: 错误: 需要class, interface或enum
public void Main() {
^
0_0_16894113_24413\Main.java:33: 错误: 需要class, interface或enum
Scanner input2 = new Scanner(System.in);
^
0_0_16894113_24413\Main.java:35: 错误: 需要class, interface或enum
List<Compute> list = new ArrayList<Compute>();
^
0_0_16894113_24413\Main.java:36: 错误: 需要class, interface或enum
int count = input.nextInt();
^
0_0_16894113_24413\Main.java:38: 错误: 需要class, interface或enum
for (int i = 0; i < count; i++) {
^
0_0_16894113_24413\Main.java:38: 错误: 需要class, interface或enum
for (int i = 0; i < count; i++) {
^
0_0_16894113_24413\Main.java:38: 错误: 需要class, interface或enum
for (int i = 0; i < count; i++) {
^
0_0_16894113_24413\Main.java:40: 错误: 需要class, interface或enum
String num = input2.nextLine();
^
0_0_16894113_24413\Main.java:41: 错误: 需要class, interface或enum
String [] arr = num.split(" ");
^
0_0_16894113_24413\Main.java:42: 错误: 需要class, interface或enum
long first = Long.parseLong(arr[0]);
^
0_0_16894113_24413\Main.java:43: 错误: 需要class, interface或enum
long second = Long.parseLong(arr[1]);
^
0_0_16894113_24413\Main.java:45: 错误: 需要class, interface或enum
c.setFirst(first);
^
0_0_16894113_24413\Main.java:46: 错误: 需要class, interface或enum
c.setSecond(second);
^
0_0_16894113_24413\Main.java:47: 错误: 需要class, interface或enum
list.add(c);
^
0_0_16894113_24413\Main.java:48: 错误: 需要class, interface或enum
}
^
0_0_16894113_24413\Main.java:49: 错误: 需要class, interface或enum
for (int i = 0; i < count; i++) {
^
0_0_16894113_24413\Main.java:49: 错误: 需要class, interface或enum
for (int i = 0; i < count; i++) {
^
0_0_16894113_24413\Main.java:51: 错误: 需要class, interface或enum
System.out.println("case " + (i+1));
^
0_0_16894113_24413\Main.java:52: 错误: 需要class, interface或enum
System.out.println(c.getFirst() + " + " + c.getSecond() + "="
^
0_0_16894113_24413\Main.java:54: 错误: 需要class, interface或enum
}
^
20 个错误
|