Wrote /root/JavaX-Caches/tmp_1522195858/main.java - 9465 bytes (written=9465, should be 9465)
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_1243016847 /root/JavaX-Caches/tmp_1522195858/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_1522195858/main.java:3: error: class, interface, or enum expected
sclass LongTreeSet implements Iterable {
^
/root/JavaX-Caches/tmp_1522195858/main.java:7: error: class, interface, or enum expected
private static final boolean RED = true;
^
/root/JavaX-Caches/tmp_1522195858/main.java:8: error: class, interface, or enum expected
private static final boolean BLACK = false;
^
/root/JavaX-Caches/tmp_1522195858/main.java:10: error: class, interface, or enum expected
private Node root; // root of the BST
^
/root/JavaX-Caches/tmp_1522195858/main.java:11: error: class, interface, or enum expected
int size; // size of tree set
^
/root/JavaX-Caches/tmp_1522195858/main.java:14: error: class, interface, or enum expected
private sclass Node {
^
/root/JavaX-Caches/tmp_1522195858/main.java:16: error: class, interface, or enum expected
private Node left, right; // links to left and right subtrees
^
/root/JavaX-Caches/tmp_1522195858/main.java:17: error: class, interface, or enum expected
private bool color; // color of parent link
^
/root/JavaX-Caches/tmp_1522195858/main.java:19: error: class, interface, or enum expected
public Node(long val, boolean color) {
^
/root/JavaX-Caches/tmp_1522195858/main.java:21: error: class, interface, or enum expected
this.color = color;
^
/root/JavaX-Caches/tmp_1522195858/main.java:22: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1522195858/main.java:26: error: class, interface, or enum expected
*(Cl cl) { addAll(cl); }
^
/root/JavaX-Caches/tmp_1522195858/main.java:31: error: class, interface, or enum expected
return x.color == RED;
^
/root/JavaX-Caches/tmp_1522195858/main.java:32: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1522195858/main.java:34: error: class, interface, or enum expected
public int size() {
^
/root/JavaX-Caches/tmp_1522195858/main.java:36: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1522195858/main.java:38: error: class, interface, or enum expected
public boolean isEmpty() {
^
/root/JavaX-Caches/tmp_1522195858/main.java:40: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1522195858/main.java:42: error: class, interface, or enum expected
public bool add(long val) {
^
/root/JavaX-Caches/tmp_1522195858/main.java:44: error: class, interface, or enum expected
root = put(root, val);
^
/root/JavaX-Caches/tmp_1522195858/main.java:45: error: class, interface, or enum expected
root.color = BLACK;
^
/root/JavaX-Caches/tmp_1522195858/main.java:46: error: class, interface, or enum expected
ifdef CompactTreeSet_debug assertTrue(check()); endifdef
^
/root/JavaX-Caches/tmp_1522195858/main.java:46: error: class, interface, or enum expected
ifdef CompactTreeSet_debug assertTrue(check()); endifdef
^
/root/JavaX-Caches/tmp_1522195858/main.java:48: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1522195858/main.java:52: error: class, interface, or enum expected
if (h == null) { ++size; ret new Node(val, RED); }
^
/root/JavaX-Caches/tmp_1522195858/main.java:52: error: class, interface, or enum expected
if (h == null) { ++size; ret new Node(val, RED); }
^
/root/JavaX-Caches/tmp_1522195858/main.java:55: error: class, interface, or enum expected
if (cmp < 0) h.left = put(h.left, val);
^
/root/JavaX-Caches/tmp_1522195858/main.java:56: error: class, interface, or enum expected
else if (cmp > 0) h.right = put(h.right, val);
^
/root/JavaX-Caches/tmp_1522195858/main.java:57: error: class, interface, or enum expected
else { /*h.val = val;*/ } // no overwriting
^
/root/JavaX-Caches/tmp_1522195858/main.java:61: error: class, interface, or enum expected
if (isRed(h.left) && isRed(h.left.left)) h = rotateRight(h);
^
/root/JavaX-Caches/tmp_1522195858/main.java:62: error: class, interface, or enum expected
if (isRed(h.left) && isRed(h.right)) flipColors(h);
^
/root/JavaX-Caches/tmp_1522195858/main.java:64: error: class, interface, or enum expected
ret h;
^
/root/JavaX-Caches/tmp_1522195858/main.java:65: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1522195858/main.java:70: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1522195858/main.java:72: error: class, interface, or enum expected
public bool remove(long key) {
^
/root/JavaX-Caches/tmp_1522195858/main.java:76: error: class, interface, or enum expected
if (!isRed(root.left) && !isRed(root.right))
^
/root/JavaX-Caches/tmp_1522195858/main.java:79: error: class, interface, or enum expected
root = delete(root, key);
^
/root/JavaX-Caches/tmp_1522195858/main.java:80: error: class, interface, or enum expected
if (!isEmpty()) root.color = BLACK;
^
/root/JavaX-Caches/tmp_1522195858/main.java:82: error: class, interface, or enum expected
true;
^
/root/JavaX-Caches/tmp_1522195858/main.java:83: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1522195858/main.java:92: error: class, interface, or enum expected
h.left = delete(h.left, key);
^
/root/JavaX-Caches/tmp_1522195858/main.java:93: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1522195858/main.java:97: error: class, interface, or enum expected
if (compare(key, h.val) == 0 && (h.right == null)) {
^
/root/JavaX-Caches/tmp_1522195858/main.java:98: error: class, interface, or enum expected
--size; null;
^
/root/JavaX-Caches/tmp_1522195858/main.java:99: error: class, interface, or enum expected
} if (!isRed(h.right) && !isRed(h.right.left))
^
/root/JavaX-Caches/tmp_1522195858/main.java:101: error: class, interface, or enum expected
if (compare(key, h.val) == 0) {
^
/root/JavaX-Caches/tmp_1522195858/main.java:103: error: class, interface, or enum expected
Node x = min(h.right);
^
/root/JavaX-Caches/tmp_1522195858/main.java:104: error: class, interface, or enum expected
h.val = x.val;
^
/root/JavaX-Caches/tmp_1522195858/main.java:107: error: class, interface, or enum expected
h.right = deleteMin(h.right);
^
/root/JavaX-Caches/tmp_1522195858/main.java:108: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1522195858/main.java:110: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1522195858/main.java:112: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1522195858/main.java:118: error: class, interface, or enum expected
h.left = x.right;
^
/root/JavaX-Caches/tmp_1522195858/main.java:119: error: class, interface, or enum expected
x.right = h;
^
/root/JavaX-Caches/tmp_1522195858/main.java:120: error: class, interface, or enum expected
x.color = x.right.color;
^
/root/JavaX-Caches/tmp_1522195858/main.java:121: error: class, interface, or enum expected
x.right.color = RED;
^
/root/JavaX-Caches/tmp_1522195858/main.java:122: error: class, interface, or enum expected
return x;
^
/root/JavaX-Caches/tmp_1522195858/main.java:123: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1522195858/main.java:129: error: class, interface, or enum expected
h.right = x.left;
^
/root/JavaX-Caches/tmp_1522195858/main.java:130: error: class, interface, or enum expected
x.left = h;
^
/root/JavaX-Caches/tmp_1522195858/main.java:131: error: class, interface, or enum expected
x.color = x.left.color;
^
/root/JavaX-Caches/tmp_1522195858/main.java:132: error: class, interface, or enum expected
x.left.color = RED;
^
/root/JavaX-Caches/tmp_1522195858/main.java:133: error: class, interface, or enum expected
return x;
^
/root/JavaX-Caches/tmp_1522195858/main.java:134: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1522195858/main.java:143: error: class, interface, or enum expected
h.left.color = !h.left.color;
^
/root/JavaX-Caches/tmp_1522195858/main.java:144: error: class, interface, or enum expected
h.right.color = !h.right.color;
^
/root/JavaX-Caches/tmp_1522195858/main.java:145: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1522195858/main.java:154: error: class, interface, or enum expected
if (isRed(h.right.left)) {
^
/root/JavaX-Caches/tmp_1522195858/main.java:156: error: class, interface, or enum expected
h = rotateLeft(h);
^
/root/JavaX-Caches/tmp_1522195858/main.java:157: error: class, interface, or enum expected
flipColors(h);
^
/root/JavaX-Caches/tmp_1522195858/main.java:158: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1522195858/main.java:160: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1522195858/main.java:168: error: class, interface, or enum expected
if (isRed(h.left.left)) {
^
/root/JavaX-Caches/tmp_1522195858/main.java:170: error: class, interface, or enum expected
flipColors(h);
^
/root/JavaX-Caches/tmp_1522195858/main.java:171: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1522195858/main.java:173: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1522195858/main.java:180: error: class, interface, or enum expected
if (isRed(h.left) && isRed(h.left.left)) h = rotateRight(h);
^
/root/JavaX-Caches/tmp_1522195858/main.java:181: error: class, interface, or enum expected
if (isRed(h.left) && isRed(h.right)) flipColors(h);
^
/root/JavaX-Caches/tmp_1522195858/main.java:183: error: class, interface, or enum expected
return h;
^
/root/JavaX-Caches/tmp_1522195858/main.java:184: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1522195858/main.java:191: error: class, interface, or enum expected
public int height() {
^
/root/JavaX-Caches/tmp_1522195858/main.java:193: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1522195858/main.java:197: error: class, interface, or enum expected
return 1 + Math.max(height(x.left), height(x.right));
^
/root/JavaX-Caches/tmp_1522195858/main.java:198: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1522195858/main.java:200: error: class, interface, or enum expected
public bool contains(long val) {
^
/root/JavaX-Caches/tmp_1522195858/main.java:202: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1522195858/main.java:207: error: class, interface, or enum expected
if (cmp < 0) x = x.left;
^
/root/JavaX-Caches/tmp_1522195858/main.java:208: error: class, interface, or enum expected
else if (cmp > 0) x = x.right;
^
/root/JavaX-Caches/tmp_1522195858/main.java:209: error: class, interface, or enum expected
else ret x;
^
/root/JavaX-Caches/tmp_1522195858/main.java:210: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1522195858/main.java:212: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1522195858/main.java:216: error: class, interface, or enum expected
if (!isBalanced()) println("Not balanced");
^
/root/JavaX-Caches/tmp_1522195858/main.java:217: error: class, interface, or enum expected
return is23() && isBalanced();
^
/root/JavaX-Caches/tmp_1522195858/main.java:218: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1522195858/main.java:222: error: class, interface, or enum expected
private boolean is23() { return is23(root); }
^
/root/JavaX-Caches/tmp_1522195858/main.java:225: error: class, interface, or enum expected
if (isRed(x.right)) return false;
^
/root/JavaX-Caches/tmp_1522195858/main.java:226: error: class, interface, or enum expected
if (x != root && isRed(x) && isRed(x.left))
^
/root/JavaX-Caches/tmp_1522195858/main.java:228: error: class, interface, or enum expected
return is23(x.left) && is23(x.right);
^
/root/JavaX-Caches/tmp_1522195858/main.java:229: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1522195858/main.java:234: error: class, interface, or enum expected
Node x = root;
^
100 errors
only showing the first 100 errors, of 145 total; use -Xmaxerrs if you would like to see more