/ Vijos /

记录详情

Compile Error

/in/Main.java:1: error: illegal character: '#'
#include<cstdio>
^
/in/Main.java:1: error: class, interface, or enum expected
#include<cstdio>
        ^
/in/Main.java:2: error: illegal character: '#'
#include<iostream>
^
/in/Main.java:3: error: illegal character: '#'
#include<algorithm>
^
/in/Main.java:4: error: illegal character: '#'
#include<cmath>
^
/in/Main.java:6: error: class, interface, or enum expected
struct path
^
/in/Main.java:9: error: class, interface, or enum expected
}a[1005];
^
/in/Main.java:10: error: class, interface, or enum expected
int d[1005];
^
/in/Main.java:11: error: class, interface, or enum expected
int b[4000005];
^
/in/Main.java:12: error: class, interface, or enum expected
bool cmp(path x,path y)
^
/in/Main.java:15: error: class, interface, or enum expected
	return x.xx<y.xx;
	^
/in/Main.java:16: error: class, interface, or enum expected
}
^
/in/Main.java:22: error: class, interface, or enum expected
		return;	
		^
/in/Main.java:23: error: class, interface, or enum expected
	}
	^
/in/Main.java:25: error: class, interface, or enum expected
	if(x>mid)add(k<<1|1,mid+1,r,x,dx);
	^
/in/Main.java:26: error: class, interface, or enum expected
	else add(k<<1,l,mid,x,dx);
	^
/in/Main.java:27: error: class, interface, or enum expected
	b[k]=max(b[k<<1],b[k<<1|1]);
	^
/in/Main.java:28: error: class, interface, or enum expected
}
^
/in/Main.java:32: error: class, interface, or enum expected
	if(l>=x&&r<=y)return b[k];
	^
/in/Main.java:33: error: class, interface, or enum expected
	int mid=(l+r)>>1;
	^
/in/Main.java:34: error: class, interface, or enum expected
	return max(query(k<<1,l,mid,x,y),query(k<<1|1,mid+1,r,x,y));
	^
/in/Main.java:35: error: class, interface, or enum expected
}
^
/in/Main.java:41: error: class, interface, or enum expected
	scanf("%d%d%d",&n,&m,&k);
	^
/in/Main.java:42: error: class, interface, or enum expected
	for(i=1;i<=k;i++)
	^
/in/Main.java:42: error: class, interface, or enum expected
	for(i=1;i<=k;i++)
	        ^
/in/Main.java:42: error: class, interface, or enum expected
	for(i=1;i<=k;i++)
	             ^
/in/Main.java:44: error: class, interface, or enum expected
	sort(a+1,a+1+k,cmp);
	^
/in/Main.java:45: error: class, interface, or enum expected
	for(i=1;i<=n;i++)
	^
/in/Main.java:45: error: class, interface, or enum expected
	for(i=1;i<=n;i++)
	        ^
/in/Main.java:45: error: class, interface, or enum expected
	for(i=1;i<=n;i++)
	             ^
/in/Main.java:50: error: class, interface, or enum expected
			l++;
			^
/in/Main.java:51: error: class, interface, or enum expected
		}
		^
/in/Main.java:53: error: class, interface, or enum expected
		maxn=max(maxn,d[i]);
		^
/in/Main.java:54: error: class, interface, or enum expected
	}
	^
/in/Main.java:56: error: class, interface, or enum expected
	printf("%d\n",(int)(ans+0.5));
	^
/in/Main.java:57: error: class, interface, or enum expected
	return 0;
	^
/in/Main.java:58: error: class, interface, or enum expected
}
^
37 errors

信息

递交者
类型
递交
题目
P1336 飞翔
语言
Java
递交时间
2019-11-05 14:48:57
评测时间
2019-11-05 14:48:57
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes