/ Vijos /

记录详情

Compile Error

./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
./Main.java:102: error: incompatible types: List<Integer> cannot be converted to Set<Integer>
								if (checkPoint(pointList.get(key),pointList.get(sk),pos,r)){
								                            ^
./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
[Hydro](https://hydro.ac)提供评测服务

信息

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