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

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

/root/JavaX-Caches/tmp_1395958599/main.java:10: error: class, interface, or enum expected sclass HyperCompactTreeSet<A> extends AbstractSet<A> { ^ /root/JavaX-Caches/tmp_1395958599/main.java:19: error: class, interface, or enum expected private static final boolean RED = true; ^ /root/JavaX-Caches/tmp_1395958599/main.java:20: error: class, interface, or enum expected private static final boolean BLACK = false; ^ /root/JavaX-Caches/tmp_1395958599/main.java:23: error: class, interface, or enum expected private static final new O nullSentinel; ^ /root/JavaX-Caches/tmp_1395958599/main.java:25: error: class, interface, or enum expected private Node<A> root; // root of the BST ^ /root/JavaX-Caches/tmp_1395958599/main.java:26: error: class, interface, or enum expected int size; // size of tree set ^ /root/JavaX-Caches/tmp_1395958599/main.java:29: error: class, interface, or enum expected abstract sclass Node<A> { ^ /root/JavaX-Caches/tmp_1395958599/main.java:32: error: class, interface, or enum expected Node<A> left() { null; } // get left subtree ^ /root/JavaX-Caches/tmp_1395958599/main.java:32: error: class, interface, or enum expected Node<A> left() { null; } // get left subtree ^ /root/JavaX-Caches/tmp_1395958599/main.java:33: error: class, interface, or enum expected abstract Node<A> setLeft(Node<A> left); // set left subtree - return potentially replaced node ^ /root/JavaX-Caches/tmp_1395958599/main.java:35: error: class, interface, or enum expected Node<A> right() { null; } // get right subtree ^ /root/JavaX-Caches/tmp_1395958599/main.java:35: error: class, interface, or enum expected Node<A> right() { null; } // get right subtree ^ /root/JavaX-Caches/tmp_1395958599/main.java:36: error: class, interface, or enum expected abstract Node<A> setRight(Node<A> right); // set right subtree - return potentially replaced node ^ /root/JavaX-Caches/tmp_1395958599/main.java:38: error: class, interface, or enum expected abstract bool color(); ^ /root/JavaX-Caches/tmp_1395958599/main.java:39: error: class, interface, or enum expected abstract Node<A> convertToBlack(); ^ /root/JavaX-Caches/tmp_1395958599/main.java:40: error: class, interface, or enum expected abstract Node<A> convertToRed(); ^ /root/JavaX-Caches/tmp_1395958599/main.java:41: error: class, interface, or enum expected abstract Node<A> invertColor(); ^ /root/JavaX-Caches/tmp_1395958599/main.java:42: error: class, interface, or enum expected Node<A> convertToColor(bool color) { ret color == RED ? convertToRed() : convertToBlack(); } ^ /root/JavaX-Caches/tmp_1395958599/main.java:42: error: class, interface, or enum expected Node<A> convertToColor(bool color) { ret color == RED ? convertToRed() : convertToBlack(); } ^ /root/JavaX-Caches/tmp_1395958599/main.java:44: error: class, interface, or enum expected abstract bool isLeaf(); ^ /root/JavaX-Caches/tmp_1395958599/main.java:45: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1395958599/main.java:54: error: class, interface, or enum expected *(A *leftVal, A *val) {} ^ /root/JavaX-Caches/tmp_1395958599/main.java:56: error: class, interface, or enum expected bool color() { ret BLACK; } ^ /root/JavaX-Caches/tmp_1395958599/main.java:57: error: class, interface, or enum expected Node<A> convertToBlack() { this; } ^ /root/JavaX-Caches/tmp_1395958599/main.java:58: error: class, interface, or enum expected Node<A> convertToRed() { ret newNode(RED, val, left(), right()); } ^ /root/JavaX-Caches/tmp_1395958599/main.java:59: error: class, interface, or enum expected Node invertColor() { ret convertToRed(); } ^ /root/JavaX-Caches/tmp_1395958599/main.java:63: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1395958599/main.java:70: error: class, interface, or enum expected else ^ /root/JavaX-Caches/tmp_1395958599/main.java:72: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1395958599/main.java:76: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1395958599/main.java:80: error: class, interface, or enum expected ret newNode(color(), val, left(), right); ^ /root/JavaX-Caches/tmp_1395958599/main.java:81: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1395958599/main.java:83: error: class, interface, or enum expected bool isLeaf() { false; } ^ /root/JavaX-Caches/tmp_1395958599/main.java:91: error: class, interface, or enum expected bool defaultLeftLeafColor() { ret BLACK; } ^ /root/JavaX-Caches/tmp_1395958599/main.java:91: error: class, interface, or enum expected bool defaultLeftLeafColor() { ret BLACK; } ^ /root/JavaX-Caches/tmp_1395958599/main.java:94: error: class, interface, or enum expected bool defaultRightLeafColor() { ret BLACK; } ^ /root/JavaX-Caches/tmp_1395958599/main.java:100: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1395958599/main.java:104: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1395958599/main.java:108: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1395958599/main.java:114: error: class, interface, or enum expected endifndef ^ /root/JavaX-Caches/tmp_1395958599/main.java:117: error: class, interface, or enum expected if (left == null && right() == null) ret newLeaf(color(), val); ^ /root/JavaX-Caches/tmp_1395958599/main.java:118: error: class, interface, or enum expected this; ^ /root/JavaX-Caches/tmp_1395958599/main.java:119: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1395958599/main.java:125: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1395958599/main.java:134: error: class, interface, or enum expected setRight_noMorph(right); ^ /root/JavaX-Caches/tmp_1395958599/main.java:135: error: class, interface, or enum expected this; ^ /root/JavaX-Caches/tmp_1395958599/main.java:136: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1395958599/main.java:138: error: class, interface, or enum expected bool isLeaf() { false; } ^ /root/JavaX-Caches/tmp_1395958599/main.java:144: error: class, interface, or enum expected bool color() { ret BLACK; } ^ /root/JavaX-Caches/tmp_1395958599/main.java:145: error: class, interface, or enum expected Node<A> convertToBlack() { this; } ^ /root/JavaX-Caches/tmp_1395958599/main.java:146: error: class, interface, or enum expected Node<A> convertToRed() { ret newNode(RED, val, left(), right()); } ^ /root/JavaX-Caches/tmp_1395958599/main.java:147: error: class, interface, or enum expected Node invertColor() { ret convertToRed(); } ^ /root/JavaX-Caches/tmp_1395958599/main.java:153: error: class, interface, or enum expected bool color() { ret RED; } ^ /root/JavaX-Caches/tmp_1395958599/main.java:154: error: class, interface, or enum expected Node<A> convertToBlack() { ret newNode(BLACK, val, left(), right()); } ^ /root/JavaX-Caches/tmp_1395958599/main.java:155: error: class, interface, or enum expected Node<A> convertToRed() { this; } ^ /root/JavaX-Caches/tmp_1395958599/main.java:156: error: class, interface, or enum expected Node invertColor() { ret convertToBlack(); } ^ /root/JavaX-Caches/tmp_1395958599/main.java:160: error: class, interface, or enum expected bool isLeaf() { true; } ^ /root/JavaX-Caches/tmp_1395958599/main.java:164: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1395958599/main.java:168: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1395958599/main.java:174: error: class, interface, or enum expected bool color() { ret BLACK; } ^ /root/JavaX-Caches/tmp_1395958599/main.java:175: error: class, interface, or enum expected Node<A> convertToBlack() { this; } ^ /root/JavaX-Caches/tmp_1395958599/main.java:176: error: class, interface, or enum expected Node<A> convertToRed() { ret new RedLeaf(val); } ^ /root/JavaX-Caches/tmp_1395958599/main.java:177: error: class, interface, or enum expected Node invertColor() { ret convertToRed(); } ^ /root/JavaX-Caches/tmp_1395958599/main.java:183: error: class, interface, or enum expected bool color() { ret RED; } ^ /root/JavaX-Caches/tmp_1395958599/main.java:184: error: class, interface, or enum expected Node<A> convertToBlack() { ret new BlackLeaf(val); } ^ /root/JavaX-Caches/tmp_1395958599/main.java:185: error: class, interface, or enum expected Node<A> convertToRed() { this; } ^ /root/JavaX-Caches/tmp_1395958599/main.java:186: error: class, interface, or enum expected Node invertColor() { ret convertToBlack(); } ^ /root/JavaX-Caches/tmp_1395958599/main.java:190: error: class, interface, or enum expected *(Cl<? extends A> cl) { addAll(cl); } ^ /root/JavaX-Caches/tmp_1395958599/main.java:194: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1395958599/main.java:198: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1395958599/main.java:203: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1395958599/main.java:207: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1395958599/main.java:214: error: class, interface, or enum expected ifndef HyperCompactTreeSet_disableSpecialNodes ^ /root/JavaX-Caches/tmp_1395958599/main.java:220: error: class, interface, or enum expected endifndef ^ /root/JavaX-Caches/tmp_1395958599/main.java:224: error: class, interface, or enum expected node.setLeft_noMorph(left); ^ /root/JavaX-Caches/tmp_1395958599/main.java:225: error: class, interface, or enum expected node.setRight_noMorph(right); ^ /root/JavaX-Caches/tmp_1395958599/main.java:226: error: class, interface, or enum expected ret node; ^ /root/JavaX-Caches/tmp_1395958599/main.java:227: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1395958599/main.java:229: error: class, interface, or enum expected public int size() { ^ /root/JavaX-Caches/tmp_1395958599/main.java:231: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1395958599/main.java:233: error: class, interface, or enum expected public bool isEmpty() { ^ /root/JavaX-Caches/tmp_1395958599/main.java:235: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1395958599/main.java:237: error: class, interface, or enum expected public bool add(A val) { ^ /root/JavaX-Caches/tmp_1395958599/main.java:239: error: class, interface, or enum expected int oldSize = size; ^ /root/JavaX-Caches/tmp_1395958599/main.java:240: error: class, interface, or enum expected root = put(root, val); ^ /root/JavaX-Caches/tmp_1395958599/main.java:241: error: class, interface, or enum expected root = root.convertToBlack(); ^ /root/JavaX-Caches/tmp_1395958599/main.java:242: error: class, interface, or enum expected ifdef CompactTreeSet_debug assertTrue(check()); endifdef ^ /root/JavaX-Caches/tmp_1395958599/main.java:242: error: class, interface, or enum expected ifdef CompactTreeSet_debug assertTrue(check()); endifdef ^ /root/JavaX-Caches/tmp_1395958599/main.java:244: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1395958599/main.java:248: error: class, interface, or enum expected if (h == null) { ++size; ret new RedLeaf(val); } ^ /root/JavaX-Caches/tmp_1395958599/main.java:248: error: class, interface, or enum expected if (h == null) { ++size; ret new RedLeaf(val); } ^ /root/JavaX-Caches/tmp_1395958599/main.java:251: error: class, interface, or enum expected if (cmp < 0) h = h.setLeft(put(h.left(), val)); ^ /root/JavaX-Caches/tmp_1395958599/main.java:252: error: class, interface, or enum expected else if (cmp > 0) h = h.setRight(put(h.right(), val)) ; ^ /root/JavaX-Caches/tmp_1395958599/main.java:253: error: class, interface, or enum expected else { /*h.val = val;*/ } // no overwriting ^ /root/JavaX-Caches/tmp_1395958599/main.java:257: error: class, interface, or enum expected if (isRed(h.left()) && isRed(h.left().left())) h = rotateRight(h); ^ /root/JavaX-Caches/tmp_1395958599/main.java:258: error: class, interface, or enum expected if (isRed(h.left()) && isRed(h.right())) h = flipColors(h); ^ /root/JavaX-Caches/tmp_1395958599/main.java:260: error: class, interface, or enum expected ret h; ^ /root/JavaX-Caches/tmp_1395958599/main.java:261: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1395958599/main.java:263: error: class, interface, or enum expected final int compare_deSentinel(A a, A b) { ^ /root/JavaX-Caches/tmp_1395958599/main.java:265: error: class, interface, or enum expected } ^ 100 errors only showing the first 100 errors, of 233 total; use -Xmaxerrs if you would like to see more