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

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

/root/JavaX-Caches/tmp_461764666/main.java:3: error: class, interface, or enum expected sclass PtTree extends AbstractSet<Pt> { ^ /root/JavaX-Caches/tmp_461764666/main.java:5: error: class, interface, or enum expected Node root = new Leaf(null); ^ /root/JavaX-Caches/tmp_461764666/main.java:9: error: class, interface, or enum expected int maxPointsPerNode = 4; ^ /root/JavaX-Caches/tmp_461764666/main.java:20: error: ')' expected fOr (Pt p : l) add(p); ^ /root/JavaX-Caches/tmp_461764666/main.java:20: error: not a statement fOr (Pt p : l) add(p); ^ /root/JavaX-Caches/tmp_461764666/main.java:20: error: ';' expected fOr (Pt p : l) add(p); ^ /root/JavaX-Caches/tmp_461764666/main.java:27: error: illegal start of type *(Node *parent) {} ^ /root/JavaX-Caches/tmp_461764666/main.java:27: error: <identifier> expected *(Node *parent) {} ^ /root/JavaX-Caches/tmp_461764666/main.java:27: error: <identifier> expected *(Node *parent) {} ^ /root/JavaX-Caches/tmp_461764666/main.java:30: error: ')' expected if (main contains(points, p)) false; ^ /root/JavaX-Caches/tmp_461764666/main.java:30: error: ';' expected if (main contains(points, p)) false; ^ /root/JavaX-Caches/tmp_461764666/main.java:31: error: '(' or '[' expected if (points == null) points = new L; ^ /root/JavaX-Caches/tmp_461764666/main.java:35: error: not a statement true; ^ /root/JavaX-Caches/tmp_461764666/main.java:38: error: '(' expected void possiblySplit { ^ /root/JavaX-Caches/tmp_461764666/main.java:44: error: ')' expected fOr (p : points) ^ /root/JavaX-Caches/tmp_461764666/main.java:44: error: not a statement fOr (p : points) ^ /root/JavaX-Caches/tmp_461764666/main.java:44: error: ';' expected fOr (p : points) ^ /root/JavaX-Caches/tmp_461764666/main.java:49: error: ';' expected record noeq ProposedSplit(int dimension, int splitPoint, int count) { ^ /root/JavaX-Caches/tmp_461764666/main.java:49: error: invalid method declaration; return type required record noeq ProposedSplit(int dimension, int splitPoint, int count) { ^ /root/JavaX-Caches/tmp_461764666/main.java:50: error: ';' expected int error() { ret abs(count-half(l(points))); } ^ /root/JavaX-Caches/tmp_461764666/main.java:50: error: ';' expected int error() { ret abs(count-half(l(points))); } ^ /root/JavaX-Caches/tmp_461764666/main.java:50: error: not a statement int error() { ret abs(count-half(l(points))); } ^ /root/JavaX-Caches/tmp_461764666/main.java:50: error: ';' expected int error() { ret abs(count-half(l(points))); } ^ /root/JavaX-Caches/tmp_461764666/main.java:61: error: '(' or '[' expected new Split split; ^ /root/JavaX-Caches/tmp_461764666/main.java:75: error: ';' expected ret replaceMeWith(split); ^ /root/JavaX-Caches/tmp_461764666/main.java:75: error: not a statement ret replaceMeWith(split); ^ /root/JavaX-Caches/tmp_461764666/main.java:75: error: ';' expected ret replaceMeWith(split); ^ /root/JavaX-Caches/tmp_461764666/main.java:87: error: '(' or '[' expected new ProposedSplit ps; ^ /root/JavaX-Caches/tmp_461764666/main.java:93: error: '(' expected while true { ^ /root/JavaX-Caches/tmp_461764666/main.java:93: error: ')' expected while true { ^ /root/JavaX-Caches/tmp_461764666/main.java:114: error: class, interface, or enum expected static final int minInf = Int.MIN_VALUE/4; ^ /root/JavaX-Caches/tmp_461764666/main.java:115: error: class, interface, or enum expected static final int inf = Int.MAX_VALUE/4; ^ /root/JavaX-Caches/tmp_461764666/main.java:127: error: ';' expected ret rectFromPoints(minInf, minInf, ^ /root/JavaX-Caches/tmp_461764666/main.java:127: error: not a statement ret rectFromPoints(minInf, minInf, ^ /root/JavaX-Caches/tmp_461764666/main.java:127: error: ';' expected ret rectFromPoints(minInf, minInf, ^ /root/JavaX-Caches/tmp_461764666/main.java:127: error: not a statement ret rectFromPoints(minInf, minInf, ^ /root/JavaX-Caches/tmp_461764666/main.java:127: error: ';' expected ret rectFromPoints(minInf, minInf, ^ /root/JavaX-Caches/tmp_461764666/main.java:128: error: not a statement dimension == 0 ? splitPoint : inf, ^ /root/JavaX-Caches/tmp_461764666/main.java:128: error: ';' expected dimension == 0 ? splitPoint : inf, ^ /root/JavaX-Caches/tmp_461764666/main.java:129: error: not a statement dimension == 1 ? splitPoint : inf); ^ /root/JavaX-Caches/tmp_461764666/main.java:129: error: ';' expected dimension == 1 ? splitPoint : inf); ^ /root/JavaX-Caches/tmp_461764666/main.java:133: error: ';' expected ret rectFromPoints( ^ /root/JavaX-Caches/tmp_461764666/main.java:134: error: not a statement dimension == 0 ? splitPoint : minInf, ^ /root/JavaX-Caches/tmp_461764666/main.java:134: error: ';' expected dimension == 0 ? splitPoint : minInf, ^ /root/JavaX-Caches/tmp_461764666/main.java:135: error: not a statement dimension == 1 ? splitPoint : minInf, ^ /root/JavaX-Caches/tmp_461764666/main.java:135: error: ';' expected dimension == 1 ? splitPoint : minInf, ^ /root/JavaX-Caches/tmp_461764666/main.java:136: error: not a statement inf, inf); ^ /root/JavaX-Caches/tmp_461764666/main.java:136: error: ';' expected inf, inf); ^ /root/JavaX-Caches/tmp_461764666/main.java:136: error: not a statement inf, inf); ^ /root/JavaX-Caches/tmp_461764666/main.java:136: error: ';' expected inf, inf); ^ /root/JavaX-Caches/tmp_461764666/main.java:155: error: class, interface, or enum expected public bool add(Pt p) { ^ /root/JavaX-Caches/tmp_461764666/main.java:157: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_461764666/main.java:161: error: class, interface, or enum expected root.collectPointsIn(r, out); ^ /root/JavaX-Caches/tmp_461764666/main.java:162: error: class, interface, or enum expected ret out; ^ /root/JavaX-Caches/tmp_461764666/main.java:163: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_461764666/main.java:165: error: class, interface, or enum expected public bool contains(O p) { ^ /root/JavaX-Caches/tmp_461764666/main.java:167: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_461764666/main.java:171: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_461764666/main.java:178: error: class, interface, or enum expected Leaf root = cast tree.root; ^ /root/JavaX-Caches/tmp_461764666/main.java:179: error: class, interface, or enum expected root.points = cloneList(points); ^ /root/JavaX-Caches/tmp_461764666/main.java:180: error: class, interface, or enum expected tree.size = l(root.points); ^ /root/JavaX-Caches/tmp_461764666/main.java:181: error: class, interface, or enum expected root.possiblySplit(); ^ /root/JavaX-Caches/tmp_461764666/main.java:182: error: class, interface, or enum expected ret tree; ^ /root/JavaX-Caches/tmp_461764666/main.java:183: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_461764666/main.java:185: error: class, interface, or enum expected public int size() { ret size; } ^ /root/JavaX-Caches/tmp_461764666/main.java:185: error: class, interface, or enum expected public int size() { ret size; } ^ /root/JavaX-Caches/tmp_461764666/main.java:187: error: class, interface, or enum expected public Iterator<Pt> iterator() { ^ /root/JavaX-Caches/tmp_461764666/main.java:210: error: class, interface, or enum expected new VStack stack; ^ /root/JavaX-Caches/tmp_461764666/main.java:211: error: class, interface, or enum expected stack.push(new co_iterate(root, out)); ^ /root/JavaX-Caches/tmp_461764666/main.java:213: error: class, interface, or enum expected ret iff_endOnNull(new IF0<Pt> { ^ /root/JavaX-Caches/tmp_461764666/main.java:216: error: class, interface, or enum expected public Pt get() { ^ /root/JavaX-Caches/tmp_461764666/main.java:222: error: class, interface, or enum expected else ^ /root/JavaX-Caches/tmp_461764666/main.java:225: error: class, interface, or enum expected if (done) null; // end of the line ^ /root/JavaX-Caches/tmp_461764666/main.java:227: error: class, interface, or enum expected if (!step(stack)) ^ /root/JavaX-Caches/tmp_461764666/main.java:229: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_461764666/main.java:232: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_461764666/main.java:239: error: class, interface, or enum expected stack.return(); ^ /root/JavaX-Caches/tmp_461764666/main.java:240: error: class, interface, or enum expected } else { ^ /root/JavaX-Caches/tmp_461764666/main.java:242: error: class, interface, or enum expected stack.call(new co_iterate(node.a, out)); ^ /root/JavaX-Caches/tmp_461764666/main.java:243: error: class, interface, or enum expected ret with step = 1; ^ /root/JavaX-Caches/tmp_461764666/main.java:244: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_461764666/main.java:247: error: class, interface, or enum expected stack.replace(new co_iterate(node.b, out)); ^ /root/JavaX-Caches/tmp_461764666/main.java:248: error: class, interface, or enum expected } ^ 83 errors