/ Vijos /

记录详情

Compile Error

/in/Main.java:69: error: incompatible types: cannot infer type arguments for HashSet<>
					blNum++;blockHash.put(hash,blNum);pointList.put(hash,new HashSet<>());
					                                                                ^
    reason: no instance(s) of type variable(s) E exist so that HashSet<E> conforms to List<Integer>
  where E is a type-variable:
    E extends Object declared in class HashSet
/in/Main.java:102: error: incompatible types: List<Integer> cannot be converted to Set<Integer>
								if (checkPoint(pointList.get(key),pointList.get(sk),pos,r)){
								                            ^
/in/Main.java:111: error: incompatible types: List<Set<Integer>> cannot be converted to List<List<Integer>>
			if (check(reach,blNum)){
			          ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
3 errors

信息

递交者
类型
自测
题目
P2031 奶酪
语言
Java
递交时间
2022-06-30 22:00:11
评测时间
2022-06-30 22:00:11
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes