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

word Ladder

Language: Layout:
+ ] Show input
Compilation time: 0.73 sec, absolute running time: 0.17 sec, cpu time: 0.13 sec, memory peak: 20 Mb, absolute service time: 1,02 sec 
edit mode |  history  | discussion
Error(s), warning(s):
source_file.java:36: warning: [rawtypes] found raw type: Pair
        q.add(new Pair(beginWord,1));
                  ^
  missing type arguments for generic class Pair<K,V>
  where K,V are type-variables:
    K extends Object declared in class Pair
    V extends Object declared in class Pair
source_file.java:36: warning: [unchecked] unchecked call to Pair(K,V) as a member of the raw type Pair
        q.add(new Pair(beginWord,1));
              ^
  where K,V are type-variables:
    K extends Object declared in class Pair
    V extends Object declared in class Pair
source_file.java:36: warning: [unchecked] unchecked method invocation: method add in interface Queue is applied to given types
        q.add(new Pair(beginWord,1));
             ^
  required: E
  found: Pair
  where E is a type-variable:
    E extends Object declared in interface Queue
source_file.java:36: warning: [unchecked] unchecked conversion
        q.add(new Pair(beginWord,1));
              ^
  required: E
  found:    Pair
  where E is a type-variable:
    E extends Object declared in interface Queue
source_file.java:52: warning: [rawtypes] found raw type: Pair
                        q.add(new Pair(word,level+1));
                                  ^
  missing type arguments for generic class Pair<K,V>
  where K,V are type-variables:
    K extends Object declared in class Pair
    V extends Object declared in class Pair
source_file.java:52: warning: [unchecked] unchecked call to Pair(K,V) as a member of the raw type Pair
                        q.add(new Pair(word,level+1));
                              ^
  where K,V are type-variables:
    K extends Object declared in class Pair
    V extends Object declared in class Pair
source_file.java:52: warning: [unchecked] unchecked method invocation: method add in interface Queue is applied to given types
                        q.add(new Pair(word,level+1));
                             ^
  required: E
  found: Pair
  where E is a type-variable:
    E extends Object declared in interface Queue
source_file.java:52: warning: [unchecked] unchecked conversion
                        q.add(new Pair(word,level+1));
                              ^
  required: E
  found:    Pair
  where E is a type-variable:
    E extends Object declared in interface Queue
8 warnings


Hello, World!
5