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_33313402_32607\Main.java:1: 错误: 非法字符: '#'
# include <iostream>
^
0_0_33313402_32607\Main.java:1: 错误: 需要class, interface或enum
# include <iostream>
          ^
0_0_33313402_32607\Main.java:2: 错误: 非法字符: '#'
# include <string>
^
0_0_33313402_32607\Main.java:5: 错误: 需要class, interface或enum
int main()
^
0_0_33313402_32607\Main.java:8: 错误: 需要class, interface或enum
	int count = 0, len;//count用于判断每行的总单词长度 包括空格
	^
0_0_33313402_32607\Main.java:9: 错误: 需要class, interface或enum
	while(cin >> word)
	^
0_0_33313402_32607\Main.java:14: 错误: 需要class, interface或enum
			cout << endl;
			^
0_0_33313402_32607\Main.java:15: 错误: 需要class, interface或enum
		}
		^
0_0_33313402_32607\Main.java:21: 错误: 需要class, interface或enum
				count = 0;
				^
0_0_33313402_32607\Main.java:22: 错误: 需要class, interface或enum
			}
			^
0_0_33313402_32607\Main.java:24: 错误: 需要class, interface或enum
		}
		^
0_0_33313402_32607\Main.java:28: 错误: 需要class, interface或enum
			count += len;//本行总单词长度增加
			^
0_0_33313402_32607\Main.java:29: 错误: 需要class, interface或enum
			if (count + 1 > 80)//若发现此单词插入后总单词长度超过80 则将该单词置于下一行
			^
0_0_33313402_32607\Main.java:32: 错误: 需要class, interface或enum
				count = len;
				^
0_0_33313402_32607\Main.java:33: 错误: 需要class, interface或enum
			}
			^
0_0_33313402_32607\Main.java:39: 错误: 需要class, interface或enum
				}
				^
0_0_33313402_32607\Main.java:41: 错误: 需要class, interface或enum
				count++;//因为输出了一个空格 所以总单词长度自增1
				^
0_0_33313402_32607\Main.java:42: 错误: 需要class, interface或enum
			}
			^
0_0_33313402_32607\Main.java:47: 错误: 需要class, interface或enum
	return 0;
	^
0_0_33313402_32607\Main.java:48: 错误: 需要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-29 18:08:09, Gzip enabled