/ 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:75: error: incompatible types: cannot infer type arguments for ArrayList<>
			reach.add(new ArrayList<>());
			                       ^
    reason: no instance(s) of type variable(s) E exist so that ArrayList<E> conforms to Set<Integer>
  where E is a type-variable:
    E extends Object declared in class ArrayList
./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 21:59:23
评测时间
2022-06-30 21:59:23
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes