Compiler output
prog.java:23: error: no suitable method found for add(ArrayList<Object>)
seats.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)
prog.java:24: error: no suitable method found for add(ArrayList<Object>)
visited.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
javac failed: errno= return=256 at /home/marius/perl5/bin/gruntmaster-compile line 22.