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

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

/root/JavaX-Caches/tmp_1032163473/main.java:3: error: class, interface, or enum expected static Path2D.Float alphaToShape(BufferedImage img) { ^ /root/JavaX-Caches/tmp_1032163473/main.java:5: error: class, interface, or enum expected Image2B alpha = new Image2B(bw); ^ /root/JavaX-Caches/tmp_1032163473/main.java:7: error: class, interface, or enum expected int w = alpha.w(), h = alpha.h(); ^ /root/JavaX-Caches/tmp_1032163473/main.java:9: error: class, interface, or enum expected Path2D.Float path = new Path2D.Float(); ^ /root/JavaX-Caches/tmp_1032163473/main.java:11: error: class, interface, or enum expected int x = w/2; ^ /root/JavaX-Caches/tmp_1032163473/main.java:12: error: class, interface, or enum expected int y = -1; ^ /root/JavaX-Caches/tmp_1032163473/main.java:13: error: class, interface, or enum expected while (y < h && !alphaToShape_isInteresting(alphaToShape_getQuadrant(alpha, x, y))) ++y; ^ /root/JavaX-Caches/tmp_1032163473/main.java:15: error: class, interface, or enum expected int x1 = x, y1 = y; ^ /root/JavaX-Caches/tmp_1032163473/main.java:16: error: class, interface, or enum expected path.moveTo(x, y); ^ /root/JavaX-Caches/tmp_1032163473/main.java:18: error: class, interface, or enum expected new HashSet<Pt> seen; ^ /root/JavaX-Caches/tmp_1032163473/main.java:19: error: class, interface, or enum expected while (seen.add(new Pt(x, y))) { ^ /root/JavaX-Caches/tmp_1032163473/main.java:22: error: class, interface, or enum expected Pt next = null; ^ /root/JavaX-Caches/tmp_1032163473/main.java:23: error: class, interface, or enum expected for (Pt p : neighborhood8(x, y)) ^ /root/JavaX-Caches/tmp_1032163473/main.java:26: error: class, interface, or enum expected break; ^ /root/JavaX-Caches/tmp_1032163473/main.java:27: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1032163473/main.java:31: error: class, interface, or enum expected x = next.x; ^ /root/JavaX-Caches/tmp_1032163473/main.java:32: error: class, interface, or enum expected y = next.y; ^ /root/JavaX-Caches/tmp_1032163473/main.java:33: error: class, interface, or enum expected path.lineTo(x+1, y+1); ^ /root/JavaX-Caches/tmp_1032163473/main.java:34: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1032163473/main.java:37: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1032163473/main.java:41: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1032163473/main.java:48: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1032163473/main.java:52: error: class, interface, or enum expected } ^ 23 errors