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_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 个错误


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-15 02:10:00, Gzip enabled