/ Vijos /

记录详情

Compile Error

/in/Main.java:1: error: illegal character: '#'
#include<bits/stdc++.h>
^
/in/Main.java:1: error: class, interface, or enum expected
#include<bits/stdc++.h>
        ^
/in/Main.java:3: error: class, interface, or enum expected
struct lzh
^
/in/Main.java:8: error: class, interface, or enum expected
	}
	^
/in/Main.java:10: error: class, interface, or enum expected
priority_queue<long long,vector<long long>,lzh>q;
^
/in/Main.java:11: error: class, interface, or enum expected
long long n,x,y,ans;
^
/in/Main.java:12: error: class, interface, or enum expected
int main()
^
/in/Main.java:15: error: class, interface, or enum expected
	for(int i=1;i<=n;i++)
	^
/in/Main.java:15: error: class, interface, or enum expected
	for(int i=1;i<=n;i++)
	            ^
/in/Main.java:15: error: class, interface, or enum expected
	for(int i=1;i<=n;i++)
	                 ^
/in/Main.java:18: error: class, interface, or enum expected
		cin>>t;
		^
/in/Main.java:19: error: class, interface, or enum expected
		q.push(t);
		^
/in/Main.java:20: error: class, interface, or enum expected
	}
	^
/in/Main.java:24: error: class, interface, or enum expected
		q.pop();
		^
/in/Main.java:25: error: class, interface, or enum expected
		y=q.top();
		^
/in/Main.java:26: error: class, interface, or enum expected
		q.pop();
		^
/in/Main.java:27: error: class, interface, or enum expected
		q.push(x+y);
		^
/in/Main.java:28: error: class, interface, or enum expected
		ans+=x+y;
		^
/in/Main.java:29: error: class, interface, or enum expected
	}
	^
/in/Main.java:31: error: class, interface, or enum expected
	return 0;
	^
/in/Main.java:32: error: class, interface, or enum expected
}
^
21 errors

信息

递交者
类型
递交
题目
P1097 合并果子
语言
Java
递交时间
2019-09-07 14:53:49
评测时间
2019-09-07 14:53:49
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes