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

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

/root/JavaX-Caches/tmp_205318857/main.java:2: error: class, interface, or enum expected sclass BStack_v2b<A> extends VStack is IBStack<A> { ^ /root/JavaX-Caches/tmp_205318857/main.java:4: error: class, interface, or enum expected int stackID = ++idCounter; // for debugging ^ /root/JavaX-Caches/tmp_205318857/main.java:8: error: class, interface, or enum expected Branch branch; ^ /root/JavaX-Caches/tmp_205318857/main.java:10: error: class, interface, or enum expected sclass Branch { ^ /root/JavaX-Caches/tmp_205318857/main.java:15: error: class, interface, or enum expected Iterator<IVF1> options; ^ /root/JavaX-Caches/tmp_205318857/main.java:18: error: class, interface, or enum expected L<AutoCloseable> undos; ^ /root/JavaX-Caches/tmp_205318857/main.java:20: error: class, interface, or enum expected void addUndo(AutoCloseable undo) { ^ /root/JavaX-Caches/tmp_205318857/main.java:22: error: class, interface, or enum expected undos.add(undo); ^ /root/JavaX-Caches/tmp_205318857/main.java:23: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_205318857/main.java:27: error: class, interface, or enum expected *(Computable<A> computation) { push(computation); } ^ /root/JavaX-Caches/tmp_205318857/main.java:28: error: class, interface, or enum expected *(Iterable<Computable> l) { pushAll(l); } ^ /root/JavaX-Caches/tmp_205318857/main.java:34: error: class, interface, or enum expected b.branchsnapshot = snapshot; ^ /root/JavaX-Caches/tmp_205318857/main.java:35: error: class, interface, or enum expected s.options = options; ^ /root/JavaX-Caches/tmp_205318857/main.java:36: error: class, interface, or enum expected s.undos = undos; ^ /root/JavaX-Caches/tmp_205318857/main.java:37: error: class, interface, or enum expected undos = null; ^ /root/JavaX-Caches/tmp_205318857/main.java:38: error: class, interface, or enum expected s.stack = shallowCloneElements(stack); ^ /root/JavaX-Caches/tmp_205318857/main.java:39: error: class, interface, or enum expected ret s; ^ /root/JavaX-Caches/tmp_205318857/main.java:40: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_205318857/main.java:42: error: class, interface, or enum expected public void addUndo(AutoCloseable undo) { ^ /root/JavaX-Caches/tmp_205318857/main.java:44: error: class, interface, or enum expected branch.addUndo(undo); ^ /root/JavaX-Caches/tmp_205318857/main.java:45: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_205318857/main.java:47: error: class, interface, or enum expected public <B extends VStack.Computable> void options(B function, IVF1<B>... options) { ^ /root/JavaX-Caches/tmp_205318857/main.java:49: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_205318857/main.java:51: error: class, interface, or enum expected public <B extends VStack.Computable> void options(B function, Iterable<IVF1<B>> options) { ^ /root/JavaX-Caches/tmp_205318857/main.java:54: error: class, interface, or enum expected if (!iterator.hasNext()) ^ /root/JavaX-Caches/tmp_205318857/main.java:57: error: class, interface, or enum expected IVF1<B> firstOption = iterator.next(); ^ /root/JavaX-Caches/tmp_205318857/main.java:62: error: class, interface, or enum expected setOptions(iterator); ^ /root/JavaX-Caches/tmp_205318857/main.java:65: error: class, interface, or enum expected firstOption.get(function); ^ /root/JavaX-Caches/tmp_205318857/main.java:66: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_205318857/main.java:69: error: class, interface, or enum expected public void step(VStack stack, O subComputationResult) { ^ /root/JavaX-Caches/tmp_205318857/main.java:71: error: class, interface, or enum expected stack.return(); ^ /root/JavaX-Caches/tmp_205318857/main.java:72: error: class, interface, or enum expected option.get(target); ^ /root/JavaX-Caches/tmp_205318857/main.java:73: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_205318857/main.java:78: error: class, interface, or enum expected snapshot = cloneStack(); ^ /root/JavaX-Caches/tmp_205318857/main.java:79: error: class, interface, or enum expected this.options = (Iterator) options; ^ /root/JavaX-Caches/tmp_205318857/main.java:80: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_205318857/main.java:84: error: class, interface, or enum expected public BStack_v2b<A> backtrack() ctex { ^ /root/JavaX-Caches/tmp_205318857/main.java:86: error: class, interface, or enum expected ret branch.backtrack(); ^ /root/JavaX-Caches/tmp_205318857/main.java:89: error: class, interface, or enum expected for (int i = l(undos)-1; i >= 0; i--) ^ /root/JavaX-Caches/tmp_205318857/main.java:89: error: class, interface, or enum expected for (int i = l(undos)-1; i >= 0; i--) ^ /root/JavaX-Caches/tmp_205318857/main.java:89: error: class, interface, or enum expected for (int i = l(undos)-1; i >= 0; i--) ^ /root/JavaX-Caches/tmp_205318857/main.java:93: error: class, interface, or enum expected if (options == null || !options.hasNext()) null; ^ /root/JavaX-Caches/tmp_205318857/main.java:96: error: class, interface, or enum expected BStack_v2b<A> nextStack = snapshot; ^ /root/JavaX-Caches/tmp_205318857/main.java:97: error: class, interface, or enum expected var option = options.next(); ^ /root/JavaX-Caches/tmp_205318857/main.java:101: error: class, interface, or enum expected bool moreOptions = options.hasNext(); ^ /root/JavaX-Caches/tmp_205318857/main.java:102: error: class, interface, or enum expected if (moreOptions) { ^ /root/JavaX-Caches/tmp_205318857/main.java:104: error: class, interface, or enum expected nextStack.stack = shallowCloneElements(snapshot.stack); ^ /root/JavaX-Caches/tmp_205318857/main.java:105: error: class, interface, or enum expected nextStack.snapshot = snapshot; ^ /root/JavaX-Caches/tmp_205318857/main.java:106: error: class, interface, or enum expected nextStack.options = options; ^ /root/JavaX-Caches/tmp_205318857/main.java:107: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_205318857/main.java:110: error: class, interface, or enum expected ret nextStack; ^ /root/JavaX-Caches/tmp_205318857/main.java:111: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_205318857/main.java:113: error: class, interface, or enum expected public A nextResult() { ^ /root/JavaX-Caches/tmp_205318857/main.java:115: error: class, interface, or enum expected return (A) latestResult; ^ /root/JavaX-Caches/tmp_205318857/main.java:116: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_205318857/main.java:119: error: class, interface, or enum expected public A nextResultWithPrintStruct(long maxSteps) { ^ /root/JavaX-Caches/tmp_205318857/main.java:121: error: class, interface, or enum expected return (A) latestResult; ^ /root/JavaX-Caches/tmp_205318857/main.java:122: error: class, interface, or enum expected } ^ 58 errors