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_36127158_19725\Main.java:4: 错误: 类P1002是公共的, 应在名为 P1002.java 的文件中声明
public class P1002 {
       ^
0_0_36127158_19725\Main.java:14: 错误: 找不到符号
			Integer a = input.nextInteger();
			                 ^
  符号:   方法 nextInteger()
  位置: 类型为Scanner的变量 input
0_0_36127158_19725\Main.java:15: 错误: 找不到符号
			Integer b = input.nextInteger();
			                 ^
  符号:   方法 nextInteger()
  位置: 类型为Scanner的变量 input
0_0_36127158_19725\Main.java:17: 错误: 找不到符号
			System.out.println(a+" + "+b+" = "+a.add(b));
			                                    ^
  符号:   方法 add(Integer)
  位置: 类型为Integer的变量 a
4 个错误


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-07-09 02:41:42, Gzip enabled