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_39709304_27543\Main.java:1: 错误: 需要class, interface或enum
const int N = 1000;
^
0_0_39709304_27543\Main.java:1: 错误: 需要class, interface或enum
const int N = 1000;
      ^
0_0_39709304_27543\Main.java:1: 错误: 需要class, interface或enum
const int N = 1000;
          ^
0_0_39709304_27543\Main.java:2: 错误: 需要class, interface或enum
int person[N]={0};
^
0_0_39709304_27543\Main.java:4: 错误: 需要class, interface或enum
int getJosePhus(int n,int m)
^
0_0_39709304_27543\Main.java:9: 错误: 需要class, interface或enum
	for(int j=0;j<n;j++)	//对下标为0~n-1赋值1~n
	^
0_0_39709304_27543\Main.java:9: 错误: 需要class, interface或enum
	for(int j=0;j<n;j++)	//对下标为0~n-1赋值1~n
	            ^
0_0_39709304_27543\Main.java:9: 错误: 需要class, interface或enum
	for(int j=0;j<n;j++)	//对下标为0~n-1赋值1~n
	                ^
0_0_39709304_27543\Main.java:12: 错误: 需要class, interface或enum
	}
	^
0_0_39709304_27543\Main.java:15: 错误: 需要class, interface或enum
	int count = 0;	//计数1、2、3
	^
0_0_39709304_27543\Main.java:16: 错误: 需要class, interface或enum
	int index = 0;	//记录下标,超过n要取模,形成环形
	^
0_0_39709304_27543\Main.java:18: 错误: 需要class, interface或enum
	while (leave<n-1)	//当离开的人数比n-1少(即未退出人数大于1时,执行循环)
	^
0_0_39709304_27543\Main.java:23: 错误: 需要class, interface或enum
		}
		^
0_0_39709304_27543\Main.java:27: 错误: 需要class, interface或enum
			count = 0;
			^
0_0_39709304_27543\Main.java:28: 错误: 需要class, interface或enum
			leave++;
			^
0_0_39709304_27543\Main.java:29: 错误: 需要class, interface或enum
		}
		^
0_0_39709304_27543\Main.java:31: 错误: 需要class, interface或enum
		if(index==n)	//达到了数组的最大下标,取模回到开头
		^
0_0_39709304_27543\Main.java:34: 错误: 需要class, interface或enum
		}
		^
0_0_39709304_27543\Main.java:37: 错误: 需要class, interface或enum
	while (person[index]==0)	//循环找出剩下最后的值未清零的那个人的数组下标
	^
0_0_39709304_27543\Main.java:40: 错误: 需要class, interface或enum
	}	
	^
0_0_39709304_27543\Main.java:42: 错误: 需要class, interface或enum
}
^
21 个错误


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-12-04 22:36:40, Gzip enabled