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

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

/root/JavaX-Caches/tmp_1863399934/main.java:1: error: class, interface, or enum expected sclass DialogOptimizer { ^ /root/JavaX-Caches/tmp_1863399934/main.java:3: error: class, interface, or enum expected bool walkTree_debug; ^ /root/JavaX-Caches/tmp_1863399934/main.java:4: error: class, interface, or enum expected bool useAdapter = true; ^ /root/JavaX-Caches/tmp_1863399934/main.java:5: error: class, interface, or enum expected O engine; ^ /root/JavaX-Caches/tmp_1863399934/main.java:7: error: class, interface, or enum expected *(S theme, S engineID) { ^ /root/JavaX-Caches/tmp_1863399934/main.java:9: error: class, interface, or enum expected L<Dialog> dialogs = loadDialogs(theme); ^ /root/JavaX-Caches/tmp_1863399934/main.java:10: error: class, interface, or enum expected callOpt(mc(), "expandDialogs", dialogs); // hmm. ^ /root/JavaX-Caches/tmp_1863399934/main.java:11: error: class, interface, or enum expected expandEllipsis(tree = makeOccTree(dialogs)); ^ /root/JavaX-Caches/tmp_1863399934/main.java:12: error: class, interface, or enum expected expandEllipsis(botTree = makeOccTree(withoutSecretDialogs(dialogs))); ^ /root/JavaX-Caches/tmp_1863399934/main.java:13: error: class, interface, or enum expected printOccTree2(botTree); ^ /root/JavaX-Caches/tmp_1863399934/main.java:14: error: class, interface, or enum expected print("Tree size: " + tree.size() + ", bot tree size: " + botTree.size()); ^ /root/JavaX-Caches/tmp_1863399934/main.java:16: error: class, interface, or enum expected try { ^ /root/JavaX-Caches/tmp_1863399934/main.java:18: error: class, interface, or enum expected } catch e { ^ /root/JavaX-Caches/tmp_1863399934/main.java:20: error: class, interface, or enum expected printStackTrace(e); ^ /root/JavaX-Caches/tmp_1863399934/main.java:21: error: class, interface, or enum expected ret; ^ /root/JavaX-Caches/tmp_1863399934/main.java:22: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1863399934/main.java:25: error: class, interface, or enum expected int origSize = botTree.size()-1; ^ /root/JavaX-Caches/tmp_1863399934/main.java:26: error: class, interface, or enum expected print("Engine works! Trying to shrink the tree."); ^ /root/JavaX-Caches/tmp_1863399934/main.java:28: error: class, interface, or enum expected while (canShrinkTree()) { ^ /root/JavaX-Caches/tmp_1863399934/main.java:30: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1863399934/main.java:33: error: class, interface, or enum expected printOccTree2(botTree); ^ /root/JavaX-Caches/tmp_1863399934/main.java:34: error: class, interface, or enum expected if (newSize < origSize) { ^ /root/JavaX-Caches/tmp_1863399934/main.java:36: error: class, interface, or enum expected print("Done shrinking tree (" + origSize + " -> " + newSize + " entries - " + percent + "% shrinkage!)"); ^ /root/JavaX-Caches/tmp_1863399934/main.java:37: error: class, interface, or enum expected } else ^ /root/JavaX-Caches/tmp_1863399934/main.java:39: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1863399934/main.java:43: error: class, interface, or enum expected bool canShrinkTree() { ^ /root/JavaX-Caches/tmp_1863399934/main.java:45: error: class, interface, or enum expected print("Leaves found: " + l(leaves)); ^ /root/JavaX-Caches/tmp_1863399934/main.java:47: error: class, interface, or enum expected bool anyChange = false; ^ /root/JavaX-Caches/tmp_1863399934/main.java:48: error: class, interface, or enum expected for (OccTree2 leaf : leaves) { ^ /root/JavaX-Caches/tmp_1863399934/main.java:50: error: class, interface, or enum expected Reattach reattach = removeLeaf(leaf); ^ /root/JavaX-Caches/tmp_1863399934/main.java:52: error: class, interface, or enum expected if (canWalkTree()) { ^ /root/JavaX-Caches/tmp_1863399934/main.java:54: error: class, interface, or enum expected anyChange = true; ^ /root/JavaX-Caches/tmp_1863399934/main.java:55: error: class, interface, or enum expected } else ^ /root/JavaX-Caches/tmp_1863399934/main.java:57: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1863399934/main.java:60: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1863399934/main.java:72: error: class, interface, or enum expected Reattach removeLeaf(OccTree2 leaf) { ^ /root/JavaX-Caches/tmp_1863399934/main.java:74: error: class, interface, or enum expected r.leaf = leaf; ^ /root/JavaX-Caches/tmp_1863399934/main.java:75: error: class, interface, or enum expected r.node = leaf.parent; ^ /root/JavaX-Caches/tmp_1863399934/main.java:76: error: class, interface, or enum expected r.idx = leaf.parent.next.indexOf(leaf); ^ /root/JavaX-Caches/tmp_1863399934/main.java:77: error: class, interface, or enum expected leaf.parent.next.remove(r.idx); ^ /root/JavaX-Caches/tmp_1863399934/main.java:78: error: class, interface, or enum expected leaf.parent = null; ^ /root/JavaX-Caches/tmp_1863399934/main.java:79: error: class, interface, or enum expected ret r; ^ /root/JavaX-Caches/tmp_1863399934/main.java:80: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1863399934/main.java:84: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1863399934/main.java:87: error: class, interface, or enum expected try { walkTree(tree, bot); true; } catch e { ^ /root/JavaX-Caches/tmp_1863399934/main.java:87: error: class, interface, or enum expected try { walkTree(tree, bot); true; } catch e { ^ /root/JavaX-Caches/tmp_1863399934/main.java:90: error: class, interface, or enum expected ret false; ^ /root/JavaX-Caches/tmp_1863399934/main.java:91: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1863399934/main.java:96: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1863399934/main.java:100: error: class, interface, or enum expected void walkTree(OccTree2 tree, O bot) { ^ /root/JavaX-Caches/tmp_1863399934/main.java:103: error: class, interface, or enum expected else ^ /root/JavaX-Caches/tmp_1863399934/main.java:107: error: class, interface, or enum expected if (walkTree_debug) ^ /root/JavaX-Caches/tmp_1863399934/main.java:109: error: class, interface, or enum expected if (input) { ^ /root/JavaX-Caches/tmp_1863399934/main.java:111: error: class, interface, or enum expected feed(bot, e); ^ /root/JavaX-Caches/tmp_1863399934/main.java:112: error: class, interface, or enum expected } else ^ /root/JavaX-Caches/tmp_1863399934/main.java:114: error: class, interface, or enum expected walkTree(tree.followUp(e), bot); ^ /root/JavaX-Caches/tmp_1863399934/main.java:115: error: class, interface, or enum expected if (walkTree_debug) ^ /root/JavaX-Caches/tmp_1863399934/main.java:117: error: class, interface, or enum expected rewind(bot); ^ /root/JavaX-Caches/tmp_1863399934/main.java:118: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1863399934/main.java:124: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1863399934/main.java:128: error: class, interface, or enum expected ++inputFed; ^ /root/JavaX-Caches/tmp_1863399934/main.java:129: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1863399934/main.java:133: error: class, interface, or enum expected if (e != null) ++outputGot; ^ /root/JavaX-Caches/tmp_1863399934/main.java:134: error: class, interface, or enum expected ret e; ^ /root/JavaX-Caches/tmp_1863399934/main.java:135: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1863399934/main.java:142: error: class, interface, or enum expected print(callOpt(bot, "thoughts")); ^ /root/JavaX-Caches/tmp_1863399934/main.java:143: error: class, interface, or enum expected print(); ^ /root/JavaX-Caches/tmp_1863399934/main.java:144: error: class, interface, or enum expected fail("Bot fail: Expected " + e + ", got: " + output); ^ /root/JavaX-Caches/tmp_1863399934/main.java:145: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1863399934/main.java:152: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1863399934/main.java:156: error: class, interface, or enum expected ret callF(get(engine, "makeBot")); ^ /root/JavaX-Caches/tmp_1863399934/main.java:157: error: class, interface, or enum expected } ^ 72 errors