Wrote /root/JavaX-Caches/tmp_1849327262/main.java - 1219 bytes (written=1219, should be 1219) 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_1030685164 /root/JavaX-Caches/tmp_1849327262/main.java 2>&1
[Compilation Error]

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

/root/JavaX-Caches/tmp_1849327262/main.java:1: error: class, interface, or enum expected scope allSpreads. ^ /root/JavaX-Caches/tmp_1849327262/main.java:3: error: illegal character: '#' sclass #Data { ^ /root/JavaX-Caches/tmp_1849327262/main.java:5: error: class, interface, or enum expected L<Int> collecting; ^ /root/JavaX-Caches/tmp_1849327262/main.java:6: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1849327262/main.java:8: error: illegal character: '#' sclass #StackEntry { ^ /root/JavaX-Caches/tmp_1849327262/main.java:10: error: class, interface, or enum expected int position; // position in code ^ /root/JavaX-Caches/tmp_1849327262/main.java:12: error: class, interface, or enum expected O step(L<StackEntry> stack, Data d) { ^ /root/JavaX-Caches/tmp_1849327262/main.java:17: error: class, interface, or enum expected popLast(stack); ^ /root/JavaX-Caches/tmp_1849327262/main.java:18: error: class, interface, or enum expected ret result; ^ /root/JavaX-Caches/tmp_1849327262/main.java:19: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1849327262/main.java:21: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1849327262/main.java:25: error: class, interface, or enum expected new StackEntry e; ^ /root/JavaX-Caches/tmp_1849327262/main.java:26: error: class, interface, or enum expected e.remaining = remaining-take; ^ /root/JavaX-Caches/tmp_1849327262/main.java:27: error: class, interface, or enum expected stack.add(e); ^ /root/JavaX-Caches/tmp_1849327262/main.java:28: error: class, interface, or enum expected position++; ^ /root/JavaX-Caches/tmp_1849327262/main.java:29: error: class, interface, or enum expected } else ^ /root/JavaX-Caches/tmp_1849327262/main.java:31: error: class, interface, or enum expected } else if (position == 2) { ^ /root/JavaX-Caches/tmp_1849327262/main.java:33: error: class, interface, or enum expected take++; ^ /root/JavaX-Caches/tmp_1849327262/main.java:34: error: class, interface, or enum expected position = 1; ^ /root/JavaX-Caches/tmp_1849327262/main.java:35: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1849327262/main.java:37: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1849327262/main.java:40: error: class, interface, or enum expected static IterableIterator<L<Int>> allSpreads(final int toSpread, final int buckets) { ^ /root/JavaX-Caches/tmp_1849327262/main.java:40: error: class, interface, or enum expected static IterableIterator<L<Int>> allSpreads(final int toSpread, final int buckets) { ^ /root/JavaX-Caches/tmp_1849327262/main.java:41: error: class, interface, or enum expected final new Data d; ^ /root/JavaX-Caches/tmp_1849327262/main.java:42: error: class, interface, or enum expected d.n = buckets; ^ /root/JavaX-Caches/tmp_1849327262/main.java:43: error: class, interface, or enum expected d.collecting = new L; ^ /root/JavaX-Caches/tmp_1849327262/main.java:45: error: class, interface, or enum expected final new L<StackEntry> stack; ^ /root/JavaX-Caches/tmp_1849327262/main.java:46: error: class, interface, or enum expected new StackEntry e; ^ /root/JavaX-Caches/tmp_1849327262/main.java:47: error: class, interface, or enum expected e.remaining = toSpread; ^ /root/JavaX-Caches/tmp_1849327262/main.java:48: error: class, interface, or enum expected stack.add(e); ^ /root/JavaX-Caches/tmp_1849327262/main.java:50: error: class, interface, or enum expected ret iff(func { ^ /root/JavaX-Caches/tmp_1849327262/main.java:53: error: class, interface, or enum expected try object last(stack).step(stack, d); ^ /root/JavaX-Caches/tmp_1849327262/main.java:54: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1849327262/main.java:56: error: class, interface, or enum expected }); ^ /root/JavaX-Caches/tmp_1849327262/main.java:57: error: class, interface, or enum expected } ^ 35 errors