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

4th ques

Language: Layout:
- ] Show input
Compilation time: 0.72 sec, absolute running time: 0.25 sec, cpu time: 0.23 sec, memory peak: 40 Mb, absolute service time: 1,23 sec 
edit mode |  history  | discussion
Error(s), warning(s):
934765357/source.java:38: 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
934765357/source.java:38: warning: [unchecked] unchecked conversion
           LinkedList<Integer> a[]=new LinkedList[n];
                                   ^
  required: LinkedList<Integer>[]
  found:    LinkedList[]
2 warnings


1 2 3 0 0 4 6 0 5 0 0 7 0 
Vertex 1 is connected to: 3 2 
Vertex 2 is connected to: 1 
Vertex 3 is connected to: 6 4 1 
Vertex 4 is connected to: 5 3 
Vertex 5 is connected to: 4 
Vertex 6 is connected to: 3