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_39708768_9160\Main.java:1: 错误: 非法字符: '#'
#include <iostream>
^
0_0_39708768_9160\Main.java:1: 错误: 需要class, interface或enum
#include <iostream>
         ^
0_0_39708768_9160\Main.java:5: 错误: 需要class, interface或enum
int tab[15] = {0,2,7,5,30,169,441,1872,7632,1740,93313,459901,1358657,2504881,0};
^
0_0_39708768_9160\Main.java:8: 错误: 需要class, interface或enum
void create(void){
^
0_0_39708768_9160\Main.java:9: 错误: 需要class, interface或enum
	for(int k = 1; k < 14; k++){		//循环k,寻找k所对应的m值 
	               ^
0_0_39708768_9160\Main.java:9: 错误: 需要class, interface或enum
	for(int k = 1; k < 14; k++){		//循环k,寻找k所对应的m值 
	                       ^
0_0_39708768_9160\Main.java:10: 错误: 需要class, interface或enum
		for(int m = k/2 + k + 1;; m++){	//循环m,m的初值可以为k+1,加上k/2进一步优化 
		                          ^
0_0_39708768_9160\Main.java:12: 错误: 需要class, interface或enum
			int now = 0;				//当前要删除的人 
			^
0_0_39708768_9160\Main.java:13: 错误: 需要class, interface或enum
			for(int i = 0; i < k; i++){	//删除K次人 
			^
0_0_39708768_9160\Main.java:13: 错误: 需要class, interface或enum
			for(int i = 0; i < k; i++){	//删除K次人 
			               ^
0_0_39708768_9160\Main.java:13: 错误: 需要class, interface或enum
			for(int i = 0; i < k; i++){	//删除K次人 
			                      ^
0_0_39708768_9160\Main.java:15: 错误: 需要class, interface或enum
				now %= sum;				//数m个人时,循环 
				^
0_0_39708768_9160\Main.java:16: 错误: 需要class, interface或enum
				if(now == 0){			//如果当前的人是最后一个(模sum为0) 
				^
0_0_39708768_9160\Main.java:18: 错误: 需要class, interface或enum
				}
				^
0_0_39708768_9160\Main.java:21: 错误: 需要class, interface或enum
					sum--;				//删除人后,总人数减少 
					^
0_0_39708768_9160\Main.java:22: 错误: 需要class, interface或enum
				}
				^
0_0_39708768_9160\Main.java:26: 错误: 需要class, interface或enum
				break;					//跳出m的循环 
				^
0_0_39708768_9160\Main.java:27: 错误: 需要class, interface或enum
			}
			^
0_0_39708768_9160\Main.java:41: 错误: 需要class, interface或enum
	while(cin >> k && k){				//有输入,并且输入不为0 
	^
0_0_39708768_9160\Main.java:43: 错误: 需要class, interface或enum
	}
	^
0_0_39708768_9160\Main.java:46: 错误: 需要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-11-17 12:37:22, Gzip enabled