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

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

/root/JavaX-Caches/tmp_221777846/main.java:1: error: class, interface, or enum expected srecord noeq G22RegionThinner_v2<Img extends WidthAndHeight>(IImageRegion<Img> originalRegion) is Steppable { ^ /root/JavaX-Caches/tmp_221777846/main.java:3: error: class, interface, or enum expected IImageRegion<Img> region; ^ /root/JavaX-Caches/tmp_221777846/main.java:4: error: class, interface, or enum expected bool phase1done; ^ /root/JavaX-Caches/tmp_221777846/main.java:10: error: class, interface, or enum expected byte[] pixels; ^ /root/JavaX-Caches/tmp_221777846/main.java:12: error: class, interface, or enum expected int idx(int x, int y) { ^ /root/JavaX-Caches/tmp_221777846/main.java:14: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_221777846/main.java:15: error: class, interface, or enum expected int idx(Pt p) { ret idx(p.x, p.y); } ^ /root/JavaX-Caches/tmp_221777846/main.java:19: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_221777846/main.java:23: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_221777846/main.java:27: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_221777846/main.java:31: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_221777846/main.java:35: error: class, interface, or enum expected pixels[idx(x, y)] = 0; ^ /root/JavaX-Caches/tmp_221777846/main.java:36: error: class, interface, or enum expected true; ^ /root/JavaX-Caches/tmp_221777846/main.java:37: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_221777846/main.java:41: error: class, interface, or enum expected bounds = originalRegion.bounds(); ^ /root/JavaX-Caches/tmp_221777846/main.java:42: error: class, interface, or enum expected pixels = new byte[area(bounds)]; ^ /root/JavaX-Caches/tmp_221777846/main.java:43: error: class, interface, or enum expected for (Pt p : originalRegion.pixelIterator()) ^ /root/JavaX-Caches/tmp_221777846/main.java:46: error: class, interface, or enum expected region = new ThinnedRegion; ^ /root/JavaX-Caches/tmp_221777846/main.java:47: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_221777846/main.java:49: error: '{' expected class ThinnedRegion is IImageRegion<Img> { ^ /root/JavaX-Caches/tmp_221777846/main.java:49: error: class, interface, or enum expected class ThinnedRegion is IImageRegion<Img> { ^ /root/JavaX-Caches/tmp_221777846/main.java:50: error: class, interface, or enum expected public Img image() { ret originalRegion.image(); } ^ /root/JavaX-Caches/tmp_221777846/main.java:50: error: class, interface, or enum expected public Img image() { ret originalRegion.image(); } ^ /root/JavaX-Caches/tmp_221777846/main.java:51: error: class, interface, or enum expected public Rect bounds() { ret bounds; } ^ /root/JavaX-Caches/tmp_221777846/main.java:51: error: class, interface, or enum expected public Rect bounds() { ret bounds; } ^ /root/JavaX-Caches/tmp_221777846/main.java:53: error: class, interface, or enum expected public bool contains(int x, int y) { ^ /root/JavaX-Caches/tmp_221777846/main.java:55: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_221777846/main.java:57: error: class, interface, or enum expected public ItIt<Pt> pixelIterator() { ^ /root/JavaX-Caches/tmp_221777846/main.java:61: error: class, interface, or enum expected public Pt get() { ^ /root/JavaX-Caches/tmp_221777846/main.java:62: error: class, interface, or enum expected for (; idx < pixels.length; idx++) ^ /root/JavaX-Caches/tmp_221777846/main.java:62: error: class, interface, or enum expected for (; idx < pixels.length; idx++) ^ /root/JavaX-Caches/tmp_221777846/main.java:65: error: class, interface, or enum expected null; ^ /root/JavaX-Caches/tmp_221777846/main.java:66: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_221777846/main.java:68: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_221777846/main.java:71: error: class, interface, or enum expected public bool step() { ^ /root/JavaX-Caches/tmp_221777846/main.java:74: error: class, interface, or enum expected if (phase1done) ^ /root/JavaX-Caches/tmp_221777846/main.java:77: error: class, interface, or enum expected L<PtBuffer> traces = g22_allBorderTraces_withDiagonals(region); ^ /root/JavaX-Caches/tmp_221777846/main.java:78: error: class, interface, or enum expected for (points : traces) ^ /root/JavaX-Caches/tmp_221777846/main.java:82: error: class, interface, or enum expected new PtBuffer toDelete; ^ /root/JavaX-Caches/tmp_221777846/main.java:84: error: class, interface, or enum expected for (points : traces) { ^ /root/JavaX-Caches/tmp_221777846/main.java:86: error: class, interface, or enum expected BitSet deletable = emptyBitSet(nPoints); ^ /root/JavaX-Caches/tmp_221777846/main.java:87: error: class, interface, or enum expected for i to nPoints: { ^ /root/JavaX-Caches/tmp_221777846/main.java:89: error: class, interface, or enum expected if (deletableBorderPoint(points, i)) ^ /root/JavaX-Caches/tmp_221777846/main.java:91: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_221777846/main.java:94: error: class, interface, or enum expected for (int i = 1; i < nPoints-1; i++) ^ /root/JavaX-Caches/tmp_221777846/main.java:94: error: class, interface, or enum expected for (int i = 1; i < nPoints-1; i++) ^ /root/JavaX-Caches/tmp_221777846/main.java:99: error: class, interface, or enum expected Pt prev = ptMinus(points.get(i-1), p); ^ /root/JavaX-Caches/tmp_221777846/main.java:100: error: class, interface, or enum expected Pt next = ptMinus(points.get(i+1), p); ^ /root/JavaX-Caches/tmp_221777846/main.java:101: error: class, interface, or enum expected int dir1 = onePathLookupDirection(prev); ^ /root/JavaX-Caches/tmp_221777846/main.java:102: error: class, interface, or enum expected int dir2 = onePathLookupDirection(next); ^ /root/JavaX-Caches/tmp_221777846/main.java:103: error: class, interface, or enum expected int diff = mod(dir2-dir1, 8); ^ /root/JavaX-Caches/tmp_221777846/main.java:104: error: class, interface, or enum expected printVars ifdef G22RegionThinner_debug(+p, +prev, +next, +dir1, +dir2, +diff); ^ /root/JavaX-Caches/tmp_221777846/main.java:105: error: class, interface, or enum expected if (diff == 1 || diff == 7) ^ /root/JavaX-Caches/tmp_221777846/main.java:107: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_221777846/main.java:112: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_221777846/main.java:117: error: class, interface, or enum expected if (empty(toDelete)) ^ /root/JavaX-Caches/tmp_221777846/main.java:119: error: class, interface, or enum expected true; ^ /root/JavaX-Caches/tmp_221777846/main.java:120: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_221777846/main.java:124: error: class, interface, or enum expected Pt p = points.get(i); ^ /root/JavaX-Caches/tmp_221777846/main.java:127: error: class, interface, or enum expected if (eq(range.get(1), p) || eq(range.get(5), p)) false; ^ /root/JavaX-Caches/tmp_221777846/main.java:129: error: class, interface, or enum expected int surroundingBorderPixels = 0, surroundingInnerPixels = 0; ^ /root/JavaX-Caches/tmp_221777846/main.java:130: error: class, interface, or enum expected for (int dir = 1; dir <= 8; dir++) { ^ /root/JavaX-Caches/tmp_221777846/main.java:130: error: class, interface, or enum expected for (int dir = 1; dir <= 8; dir++) { ^ /root/JavaX-Caches/tmp_221777846/main.java:130: error: class, interface, or enum expected for (int dir = 1; dir <= 8; dir++) { ^ /root/JavaX-Caches/tmp_221777846/main.java:132: error: class, interface, or enum expected byte value = getPixel(p2); ^ /root/JavaX-Caches/tmp_221777846/main.java:133: error: class, interface, or enum expected if (value == 2 && !range.contains(p2)) ^ /root/JavaX-Caches/tmp_221777846/main.java:135: error: class, interface, or enum expected else if (value == 1) ^ /root/JavaX-Caches/tmp_221777846/main.java:137: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_221777846/main.java:141: error: class, interface, or enum expected printVars ifdef G22RegionThinner_debug(+p, +surroundingInnerPixels, +surroundingBorderPixels, +deletable, +range); ^ /root/JavaX-Caches/tmp_221777846/main.java:142: error: class, interface, or enum expected ret deletable; ^ /root/JavaX-Caches/tmp_221777846/main.java:143: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_221777846/main.java:145: error: class, interface, or enum expected IImageRegion region aka get() { ret or(region, originalRegion); } ^ /root/JavaX-Caches/tmp_221777846/main.java:150: error: class, interface, or enum expected int x1 = bounds.x, x2 = bounds.x2(); ^ /root/JavaX-Caches/tmp_221777846/main.java:151: error: class, interface, or enum expected int y1 = bounds.y, y2 = bounds.y2(); ^ /root/JavaX-Caches/tmp_221777846/main.java:152: error: class, interface, or enum expected printVars ifdef G22RegionThinner_debug("finalStep", +x1, +y1, +x2, +y2); ^ /root/JavaX-Caches/tmp_221777846/main.java:154: error: class, interface, or enum expected for (int y = y1; y < y2; y++) ^ /root/JavaX-Caches/tmp_221777846/main.java:154: error: class, interface, or enum expected for (int y = y1; y < y2; y++) ^ /root/JavaX-Caches/tmp_221777846/main.java:154: error: class, interface, or enum expected for (int y = y1; y < y2; y++) ^ /root/JavaX-Caches/tmp_221777846/main.java:155: error: class, interface, or enum expected for (int x = x1; x < x2; x++) { ^ /root/JavaX-Caches/tmp_221777846/main.java:155: error: class, interface, or enum expected for (int x = x1; x < x2; x++) { ^ /root/JavaX-Caches/tmp_221777846/main.java:160: error: class, interface, or enum expected bool right1 = contains(x+1, y), right2 = contains(x+2, y); ^ /root/JavaX-Caches/tmp_221777846/main.java:161: error: class, interface, or enum expected bool down1 = contains(x, y+1), down2 = contains(x, y+2); ^ /root/JavaX-Caches/tmp_221777846/main.java:163: error: class, interface, or enum expected printVars ifdef G22RegionThinner_debug(+x, +y, +right1, +right2, +down1, +down2); ^ /root/JavaX-Caches/tmp_221777846/main.java:165: error: class, interface, or enum expected if (right1 && down1) { ^ /root/JavaX-Caches/tmp_221777846/main.java:168: error: class, interface, or enum expected else if (!down2) ^ /root/JavaX-Caches/tmp_221777846/main.java:170: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_221777846/main.java:173: error: class, interface, or enum expected } ^ 87 errors