Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

4th question

Language: Layout:
- ] Show input
Compilation time: 0.83 sec, absolute service time: 1,02 sec 
edit mode |  history  | discussion
Error(s), warning(s):
1841918501/source.java:54: warning: [rawtypes] found raw type: LinkedList
           LinkedList<Integer> a[]=new LinkedList[n];
                                       ^
  missing type arguments for generic class LinkedList<E>
  where E is a type-variable:
    E extends Object declared in class LinkedList
1841918501/source.java:54: warning: [unchecked] unchecked conversion
           LinkedList<Integer> a[]=new LinkedList[n];
                                   ^
  required: LinkedList<Integer>[]
  found:    LinkedList[]
1841918501/source.java:97: error: incompatible types: LinkedList<Integer>[] cannot be converted to LinkedList<Integer>
       int ans= dfs(inode,visited,a);
                                  ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
2 warnings