Borderou de evaluare (job #1705216)
Utilizator | Data | 20 mai 2016 02:14:54 | |
---|---|---|---|
Problema | Parcurgere DFS - componente conexe | Status | done |
Runda | Arhiva educationala | Compilator | java | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
Main.java:25: error: no suitable method found for add(ArrayList<Object>)
edges.add(new ArrayList<>());
^
method List.add(int,List<Integer>) is not applicable
(actual and formal argument lists differ in length)
method List.add(List<Integer>) is not applicable
(actual argument ArrayList<Object> cannot be converted to List<Integer> by method invocation conversion)
method Collection.add(List<Integer>) is not applicable
(actual argument ArrayList<Object> cannot be converted to List<Integer> by method invocation conversion)
Main.java:49: error: no suitable method found for add(ArrayList<Object>)
edges.add(new ArrayList<>());
^
method List.add(int,List<Integer>) is not applicable
(actual and formal argument lists differ in length)
method List.add(List<Integer>) is not applicable
(actual argument ArrayList<Object> cannot be converted to List<Integer> by method invocation conversion)
method Collection.add(List<Integer>) is not applicable
(actual argument ArrayList<Object> cannot be converted to List<Integer> by method invocation conversion)
2 errors
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !