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_28960465_14460\Main.java:3: 错误: 需要class, interface或enum
public Main{
       ^
0_0_28960465_14460\Main.java:5: 错误: 需要class, interface或enum
	private static final int M = -0x3f3f3f3f;
	                     ^
0_0_28960465_14460\Main.java:7: 错误: 需要class, interface或enum
	public static void main(String[] args) {
	              ^
0_0_28960465_14460\Main.java:10: 错误: 需要class, interface或enum
		while(in.hasNext()){
		^
0_0_28960465_14460\Main.java:12: 错误: 需要class, interface或enum
			int n = in.nextInt();//数字数
			^
0_0_28960465_14460\Main.java:16: 错误: 需要class, interface或enum
			int[] input = new int[n+10];//记录输入数值
			^
0_0_28960465_14460\Main.java:17: 错误: 需要class, interface或enum
				int[] preMax = new int[n+10];//记录该层最大的值 留到下层使用
				^
0_0_28960465_14460\Main.java:18: 错误: 需要class, interface或enum
				int[] dp = new int[n+10];//记录当前每层的值
				^
0_0_28960465_14460\Main.java:19: 错误: 需要class, interface或enum
			for(int i=0;i<=n;i++){
			^
0_0_28960465_14460\Main.java:19: 错误: 需要class, interface或enum
			for(int i=0;i<=n;i++){
			            ^
0_0_28960465_14460\Main.java:19: 错误: 需要class, interface或enum
			for(int i=0;i<=n;i++){
			                 ^
0_0_28960465_14460\Main.java:21: 错误: 需要class, interface或enum
				dp[i] = 0;
				^
0_0_28960465_14460\Main.java:22: 错误: 需要class, interface或enum
			}
			^
0_0_28960465_14460\Main.java:24: 错误: 需要class, interface或enum
			for(int i=1;i<=n;i++){
			^
0_0_28960465_14460\Main.java:24: 错误: 需要class, interface或enum
			for(int i=1;i<=n;i++){
			            ^
0_0_28960465_14460\Main.java:24: 错误: 需要class, interface或enum
			for(int i=1;i<=n;i++){
			                 ^
0_0_28960465_14460\Main.java:26: 错误: 需要class, interface或enum
				input[i] = digit;
				^
0_0_28960465_14460\Main.java:27: 错误: 需要class, interface或enum
			}
			^
0_0_28960465_14460\Main.java:31: 错误: 需要class, interface或enum
			for(int i=1;i<=m;i++){
			^
0_0_28960465_14460\Main.java:31: 错误: 需要class, interface或enum
			for(int i=1;i<=m;i++){
			            ^
0_0_28960465_14460\Main.java:31: 错误: 需要class, interface或enum
			for(int i=1;i<=m;i++){
			                 ^
0_0_28960465_14460\Main.java:33: 错误: 需要class, interface或enum
				for(int j=i;j<=n;j++){
				^
0_0_28960465_14460\Main.java:33: 错误: 需要class, interface或enum
				for(int j=i;j<=n;j++){
				            ^
0_0_28960465_14460\Main.java:33: 错误: 需要class, interface或enum
				for(int j=i;j<=n;j++){
				                 ^
0_0_28960465_14460\Main.java:35: 错误: 需要class, interface或enum
					preMax[j-1] = tempMax;//记录当前位置对应j-1上一层最大的和
					^
0_0_28960465_14460\Main.java:36: 错误: 需要class, interface或enum
					tempMax = Math.max(dp[j],tempMax);//更新j-1层上一层最大的和
					^
0_0_28960465_14460\Main.java:37: 错误: 需要class, interface或enum
				}
				^
0_0_28960465_14460\Main.java:40: 错误: 需要class, interface或enum
		}
		^
28 个错误


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-01-11 00:39:17, Gzip enabled