Wrote /root/JavaX-Caches/tmp_2017067874/main.java - 1985 bytes (written=1985, should be 1985) javac=0, ecj=1, useJarBot=0 Checking ECJ at port 4898 at 127.0.0.1 /root/jdk-17/bin/javac -source 11 -target 11 -nowarn -encoding utf8 -Xdiags:verbose -cp /root/.javax/x30.jar:/root/dexcompiler/android.jar:/root/dexcompiler/support-v4-22.2.1.jar:/root/javafx/javafx.base.jar:/root/javafx/javafx.graphics.jar:/root/javafx/javafx.swing.jar -d /root/JavaX-Caches/tmp_156503940 /root/JavaX-Caches/tmp_2017067874/main.java 2>&1
[Compilation Error]

Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.

/root/JavaX-Caches/tmp_2017067874/main.java:1: error: class, interface, or enum expected static <A> IterableIterator<O[]> allPermutations_iterator(final L<A> theList) { ^ /root/JavaX-Caches/tmp_2017067874/main.java:1: error: class, interface, or enum expected static <A> IterableIterator<O[]> allPermutations_iterator(final L<A> theList) { ^ /root/JavaX-Caches/tmp_2017067874/main.java:5: error: class, interface, or enum expected int n = l(theList); ^ /root/JavaX-Caches/tmp_2017067874/main.java:6: error: class, interface, or enum expected int[] perm, dirs; ^ /root/JavaX-Caches/tmp_2017067874/main.java:8: error: class, interface, or enum expected { ^ /root/JavaX-Caches/tmp_2017067874/main.java:11: error: class, interface, or enum expected dirs = new int[n]; ^ /root/JavaX-Caches/tmp_2017067874/main.java:12: error: class, interface, or enum expected for(int i = 0; i < n; i++) { ^ /root/JavaX-Caches/tmp_2017067874/main.java:12: error: class, interface, or enum expected for(int i = 0; i < n; i++) { ^ /root/JavaX-Caches/tmp_2017067874/main.java:12: error: class, interface, or enum expected for(int i = 0; i < n; i++) { ^ /root/JavaX-Caches/tmp_2017067874/main.java:14: error: class, interface, or enum expected dirs[i] = -1; ^ /root/JavaX-Caches/tmp_2017067874/main.java:15: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2017067874/main.java:17: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2017067874/main.java:20: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2017067874/main.java:23: error: class, interface, or enum expected public O[] next() { ^ /root/JavaX-Caches/tmp_2017067874/main.java:25: error: class, interface, or enum expected next = null; ^ /root/JavaX-Caches/tmp_2017067874/main.java:26: error: class, interface, or enum expected O[] out = new O[n]; ^ /root/JavaX-Caches/tmp_2017067874/main.java:27: error: class, interface, or enum expected for i to n: ^ /root/JavaX-Caches/tmp_2017067874/main.java:29: error: class, interface, or enum expected ret out; ^ /root/JavaX-Caches/tmp_2017067874/main.java:30: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2017067874/main.java:33: error: class, interface, or enum expected public boolean hasNext() { ^ /root/JavaX-Caches/tmp_2017067874/main.java:35: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2017067874/main.java:38: error: class, interface, or enum expected public void remove() { ^ /root/JavaX-Caches/tmp_2017067874/main.java:40: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2017067874/main.java:44: error: class, interface, or enum expected if (next != null) ^ /root/JavaX-Caches/tmp_2017067874/main.java:46: error: class, interface, or enum expected if (perm == null) ^ /root/JavaX-Caches/tmp_2017067874/main.java:50: error: class, interface, or enum expected int i = -1, e = -1; ^ /root/JavaX-Caches/tmp_2017067874/main.java:51: error: class, interface, or enum expected for(int j = 0; j < n; j++) ^ /root/JavaX-Caches/tmp_2017067874/main.java:51: error: class, interface, or enum expected for(int j = 0; j < n; j++) ^ /root/JavaX-Caches/tmp_2017067874/main.java:51: error: class, interface, or enum expected for(int j = 0; j < n; j++) ^ /root/JavaX-Caches/tmp_2017067874/main.java:54: error: class, interface, or enum expected i = j; ^ /root/JavaX-Caches/tmp_2017067874/main.java:55: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2017067874/main.java:61: error: class, interface, or enum expected int k = i + dirs[i]; ^ /root/JavaX-Caches/tmp_2017067874/main.java:62: error: class, interface, or enum expected swapIntArray(dirs, i, k); ^ /root/JavaX-Caches/tmp_2017067874/main.java:63: error: class, interface, or enum expected swapIntArray(perm, i, k); ^ /root/JavaX-Caches/tmp_2017067874/main.java:66: error: class, interface, or enum expected if ((k == 0) || (k == n-1) || (perm[k + dirs[k]] > e)) ^ /root/JavaX-Caches/tmp_2017067874/main.java:70: error: class, interface, or enum expected for(int j = 0; j < n; j++) ^ /root/JavaX-Caches/tmp_2017067874/main.java:70: error: class, interface, or enum expected for(int j = 0; j < n; j++) ^ /root/JavaX-Caches/tmp_2017067874/main.java:70: error: class, interface, or enum expected for(int j = 0; j < n; j++) ^ /root/JavaX-Caches/tmp_2017067874/main.java:74: error: class, interface, or enum expected return (next = perm); ^ /root/JavaX-Caches/tmp_2017067874/main.java:75: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2017067874/main.java:77: error: class, interface, or enum expected } ^ 41 errors