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_37362599_14074\Main.java:1: 错误: 非法字符: '#'
#include<iostream>
^
0_0_37362599_14074\Main.java:1: 错误: 需要class, interface或enum
#include<iostream>
        ^
0_0_37362599_14074\Main.java:2: 错误: 非法字符: '#'
#include<cstring>
^
0_0_37362599_14074\Main.java:4: 错误: 需要class, interface或enum
struct node
^
0_0_37362599_14074\Main.java:7: 错误: 需要class, interface或enum
	char time[20];
	^
0_0_37362599_14074\Main.java:8: 错误: 需要class, interface或enum
	int s;
	^
0_0_37362599_14074\Main.java:9: 错误: 需要class, interface或enum
} f[20];
^
0_0_37362599_14074\Main.java:11: 错误: 需要class, interface或enum
int cmp(const void *a,const void *b)
^
0_0_37362599_14074\Main.java:13: 错误: 需要class, interface或enum
	node *c=(node *)a;  node *d=(node *)b;
	                    ^
0_0_37362599_14074\Main.java:15: 错误: 需要class, interface或enum
	if(strcmp(c->time,d->time)>0)
	^
0_0_37362599_14074\Main.java:17: 错误: 需要class, interface或enum
	if(strcmp(c->time,d->time)<0)
	^
0_0_37362599_14074\Main.java:21: 错误: 需要class, interface或enum
	if(strcmp(c->time,d->time)==0)
	^
0_0_37362599_14074\Main.java:25: 错误: 需要class, interface或enum
}
^
0_0_37362599_14074\Main.java:30: 错误: 需要class, interface或enum
	int i;
	^
0_0_37362599_14074\Main.java:31: 错误: 需要class, interface或enum
	int flag=0;
	^
0_0_37362599_14074\Main.java:32: 错误: 需要class, interface或enum
	int k;
	^
0_0_37362599_14074\Main.java:33: 错误: 需要class, interface或enum
	int t=1;
	^
0_0_37362599_14074\Main.java:34: 错误: 需要class, interface或enum
	while(cin>>n&&n)
	^
0_0_37362599_14074\Main.java:40: 错误: 需要class, interface或enum
		for(i=0;i<n;i++)
		^
0_0_37362599_14074\Main.java:40: 错误: 需要class, interface或enum
		for(i=0;i<n;i++)
		        ^
0_0_37362599_14074\Main.java:40: 错误: 需要class, interface或enum
		for(i=0;i<n;i++)
		            ^
0_0_37362599_14074\Main.java:43: 错误: 需要class, interface或enum
		qsort(f,n,sizeof(f[0]),cmp);
		^
0_0_37362599_14074\Main.java:45: 错误: 需要class, interface或enum
		k=1;
		^
0_0_37362599_14074\Main.java:47: 错误: 需要class, interface或enum
		printf("Case #%d\n",t++);
		^
0_0_37362599_14074\Main.java:49: 错误: 需要class, interface或enum
		cout<<f[0].name<<" "<<k<<endl;
		^
0_0_37362599_14074\Main.java:50: 错误: 需要class, interface或enum
		f[0].s=1;
		^
0_0_37362599_14074\Main.java:52: 错误: 需要class, interface或enum
		k++;
		^
0_0_37362599_14074\Main.java:54: 错误: 需要class, interface或enum
		for(i=1;i<n;i++)
		^
0_0_37362599_14074\Main.java:54: 错误: 需要class, interface或enum
		for(i=1;i<n;i++)
		        ^
0_0_37362599_14074\Main.java:54: 错误: 需要class, interface或enum
		for(i=1;i<n;i++)
		            ^
0_0_37362599_14074\Main.java:58: 错误: 需要class, interface或enum
			if(strcmp(f[i].time,f[i-1].time)==0)
			^
0_0_37362599_14074\Main.java:61: 错误: 需要class, interface或enum
				f[i].s=f[i-1].s;
				^
0_0_37362599_14074\Main.java:62: 错误: 需要class, interface或enum
			}
			^
0_0_37362599_14074\Main.java:67: 错误: 需要class, interface或enum
			f[i].s=k;
			^
0_0_37362599_14074\Main.java:68: 错误: 需要class, interface或enum
			}
			^
0_0_37362599_14074\Main.java:71: 错误: 需要class, interface或enum
		}
		^
0_0_37362599_14074\Main.java:73: 错误: 需要class, interface或enum
	}
	^
0_0_37362599_14074\Main.java:75: 错误: 需要class, interface或enum
}
^
38 个错误


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-16 11:08:22, Gzip enabled