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

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

/root/JavaX-Caches/tmp_16794838/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_16794838/main.java:3: error: class, interface, or enum expected IImageRegion<Img> region; ^ /root/JavaX-Caches/tmp_16794838/main.java:4: error: class, interface, or enum expected bool phase1done; ^ /root/JavaX-Caches/tmp_16794838/main.java:6: error: class, interface, or enum expected settable bool debug; ^ /root/JavaX-Caches/tmp_16794838/main.java:7: error: class, interface, or enum expected settable bool doFinalStep = true; ^ /root/JavaX-Caches/tmp_16794838/main.java:8: error: class, interface, or enum expected settable int lastPhaseThreshold1 = 2; ^ /root/JavaX-Caches/tmp_16794838/main.java:9: error: class, interface, or enum expected settable int lastPhaseThreshold = 5; ^ /root/JavaX-Caches/tmp_16794838/main.java:11: error: class, interface, or enum expected settable byte[] lookupTable; ^ /root/JavaX-Caches/tmp_16794838/main.java:17: error: class, interface, or enum expected byte[] pixels; ^ /root/JavaX-Caches/tmp_16794838/main.java:19: error: class, interface, or enum expected int idx(int x, int y) { ^ /root/JavaX-Caches/tmp_16794838/main.java:21: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_16794838/main.java:22: error: class, interface, or enum expected int idx(Pt p) { ret idx(p.x, p.y); } ^ /root/JavaX-Caches/tmp_16794838/main.java:26: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_16794838/main.java:30: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_16794838/main.java:34: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_16794838/main.java:38: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_16794838/main.java:42: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_16794838/main.java:46: error: class, interface, or enum expected pixels[idx(x, y)] = 0; ^ /root/JavaX-Caches/tmp_16794838/main.java:47: error: class, interface, or enum expected true; ^ /root/JavaX-Caches/tmp_16794838/main.java:48: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_16794838/main.java:52: error: class, interface, or enum expected bounds = originalRegion.bounds(); ^ /root/JavaX-Caches/tmp_16794838/main.java:53: error: class, interface, or enum expected pixels = new byte[area(bounds)]; ^ /root/JavaX-Caches/tmp_16794838/main.java:54: error: class, interface, or enum expected for (Pt p : originalRegion.pixelIterator()) ^ /root/JavaX-Caches/tmp_16794838/main.java:57: error: class, interface, or enum expected region = new ThinnedRegion; ^ /root/JavaX-Caches/tmp_16794838/main.java:58: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_16794838/main.java:60: error: '{' expected class ThinnedRegion is IImageRegion<Img> { ^ /root/JavaX-Caches/tmp_16794838/main.java:60: error: class, interface, or enum expected class ThinnedRegion is IImageRegion<Img> { ^ /root/JavaX-Caches/tmp_16794838/main.java:61: error: class, interface, or enum expected public Img image() { ret originalRegion.image(); } ^ /root/JavaX-Caches/tmp_16794838/main.java:61: error: class, interface, or enum expected public Img image() { ret originalRegion.image(); } ^ /root/JavaX-Caches/tmp_16794838/main.java:62: error: class, interface, or enum expected public Rect bounds() { ret bounds; } ^ /root/JavaX-Caches/tmp_16794838/main.java:62: error: class, interface, or enum expected public Rect bounds() { ret bounds; } ^ /root/JavaX-Caches/tmp_16794838/main.java:64: error: class, interface, or enum expected public bool contains(int x, int y) { ^ /root/JavaX-Caches/tmp_16794838/main.java:66: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_16794838/main.java:68: error: class, interface, or enum expected public ItIt<Pt> pixelIterator() { ^ /root/JavaX-Caches/tmp_16794838/main.java:72: error: class, interface, or enum expected public Pt get() { ^ /root/JavaX-Caches/tmp_16794838/main.java:73: error: class, interface, or enum expected for (; idx < pixels.length; idx++) ^ /root/JavaX-Caches/tmp_16794838/main.java:73: error: class, interface, or enum expected for (; idx < pixels.length; idx++) ^ /root/JavaX-Caches/tmp_16794838/main.java:76: error: class, interface, or enum expected null; ^ /root/JavaX-Caches/tmp_16794838/main.java:77: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_16794838/main.java:79: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_16794838/main.java:82: error: class, interface, or enum expected public bool step() { ^ /root/JavaX-Caches/tmp_16794838/main.java:85: error: class, interface, or enum expected if (phase1done) ^ /root/JavaX-Caches/tmp_16794838/main.java:88: error: class, interface, or enum expected L<PtBuffer> traces = g22_allBorderTraces_withDiagonals(region); ^ /root/JavaX-Caches/tmp_16794838/main.java:89: error: class, interface, or enum expected for (points : traces) ^ /root/JavaX-Caches/tmp_16794838/main.java:93: error: class, interface, or enum expected new PtBuffer toDelete; ^ /root/JavaX-Caches/tmp_16794838/main.java:95: error: class, interface, or enum expected for (points : traces) { ^ /root/JavaX-Caches/tmp_16794838/main.java:97: error: class, interface, or enum expected BitSet deletable = emptyBitSet(nPoints); ^ /root/JavaX-Caches/tmp_16794838/main.java:98: error: class, interface, or enum expected for i to nPoints: { ^ /root/JavaX-Caches/tmp_16794838/main.java:103: error: class, interface, or enum expected if (del) ^ /root/JavaX-Caches/tmp_16794838/main.java:105: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_16794838/main.java:115: error: class, interface, or enum expected Pt prev = ptMinus(cyclicGet(points, i-1), p); ^ /root/JavaX-Caches/tmp_16794838/main.java:116: error: class, interface, or enum expected Pt next = ptMinus(cyclicGet(points, i+1), p); ^ /root/JavaX-Caches/tmp_16794838/main.java:117: error: class, interface, or enum expected int dir1 = onePathLookupDirection(prev); ^ /root/JavaX-Caches/tmp_16794838/main.java:118: error: class, interface, or enum expected int dir2 = onePathLookupDirection(next); ^ /root/JavaX-Caches/tmp_16794838/main.java:119: error: class, interface, or enum expected int diff = mod(dir2-dir1, 8); ^ /root/JavaX-Caches/tmp_16794838/main.java:120: error: class, interface, or enum expected if (debug) printVars("special case", +p, +prev, +next, +dir1, +dir2, +diff); ^ /root/JavaX-Caches/tmp_16794838/main.java:121: error: class, interface, or enum expected if (diff == 1 || diff == 7) ^ /root/JavaX-Caches/tmp_16794838/main.java:123: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_16794838/main.java:128: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_16794838/main.java:133: error: class, interface, or enum expected if (empty(toDelete)) ^ /root/JavaX-Caches/tmp_16794838/main.java:135: error: class, interface, or enum expected true; ^ /root/JavaX-Caches/tmp_16794838/main.java:136: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_16794838/main.java:141: error: class, interface, or enum expected long p_long = pointsBuf.get(i); ^ /root/JavaX-Caches/tmp_16794838/main.java:145: error: class, interface, or enum expected if (p_long == cyclicGet(pointsBuf, i-2) ^ /root/JavaX-Caches/tmp_16794838/main.java:148: error: class, interface, or enum expected false; ^ /root/JavaX-Caches/tmp_16794838/main.java:149: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_16794838/main.java:161: error: class, interface, or enum expected int foreignBorderPixels = 0; ^ /root/JavaX-Caches/tmp_16794838/main.java:162: error: class, interface, or enum expected for (int dir = 1; dir <= 8; dir++) { ^ /root/JavaX-Caches/tmp_16794838/main.java:162: error: class, interface, or enum expected for (int dir = 1; dir <= 8; dir++) { ^ /root/JavaX-Caches/tmp_16794838/main.java:162: error: class, interface, or enum expected for (int dir = 1; dir <= 8; dir++) { ^ /root/JavaX-Caches/tmp_16794838/main.java:164: error: class, interface, or enum expected byte value = getPixel(p2_long); ^ /root/JavaX-Caches/tmp_16794838/main.java:165: error: class, interface, or enum expected if (value == 2 && !rangeContains(pointsBuf, i, p2_long)) { ^ /root/JavaX-Caches/tmp_16794838/main.java:171: error: class, interface, or enum expected printVars ifdef G22RegionThinner_debug("surroundingBorderPixel", p := ptFromLong(p_long), +dir, p2 := ptFromLong(p2_long), +fix); ^ /root/JavaX-Caches/tmp_16794838/main.java:174: error: class, interface, or enum expected if (!fix) false; ^ /root/JavaX-Caches/tmp_16794838/main.java:175: error: class, interface, or enum expected ifdef G22RegionThinner_debug ^ /root/JavaX-Caches/tmp_16794838/main.java:177: error: class, interface, or enum expected endifdef ^ /root/JavaX-Caches/tmp_16794838/main.java:180: error: class, interface, or enum expected surroundingInnerPixels++; ^ /root/JavaX-Caches/tmp_16794838/main.java:181: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_16794838/main.java:188: error: class, interface, or enum expected int imgPattern = neighborhoodPattern(firstIntFromLong(p_long), secondIntFromLong(p_long)); ^ /root/JavaX-Caches/tmp_16794838/main.java:189: error: class, interface, or enum expected if (imgPattern == 0b10011100 // "E" problem ^ /root/JavaX-Caches/tmp_16794838/main.java:197: error: class, interface, or enum expected else if (imgPattern == 0b11010110 // "&" problem (2x3 block) ^ /root/JavaX-Caches/tmp_16794838/main.java:200: error: class, interface, or enum expected printVars ifdef G22RegionThinner_debug(p := ptFromLong(p_long), +foreignBorderPixels, +surroundingInnerPixels, +deletable, ^ /root/JavaX-Caches/tmp_16794838/main.java:206: error: class, interface, or enum expected ret deletable; ^ /root/JavaX-Caches/tmp_16794838/main.java:207: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_16794838/main.java:210: error: class, interface, or enum expected for (int j = i-3; j <= i+3; j++) ^ /root/JavaX-Caches/tmp_16794838/main.java:210: error: class, interface, or enum expected for (int j = i-3; j <= i+3; j++) ^ /root/JavaX-Caches/tmp_16794838/main.java:213: error: class, interface, or enum expected false; ^ /root/JavaX-Caches/tmp_16794838/main.java:214: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_16794838/main.java:218: error: class, interface, or enum expected Pt p = points.get(i); ^ /root/JavaX-Caches/tmp_16794838/main.java:221: error: class, interface, or enum expected if (eq(range.get(1), p) || eq(range.get(5), p)) false; ^ /root/JavaX-Caches/tmp_16794838/main.java:223: error: class, interface, or enum expected int surroundingBorderPixels = 0, surroundingInnerPixels = 0; ^ /root/JavaX-Caches/tmp_16794838/main.java:224: error: class, interface, or enum expected for (int dir = 1; dir <= 8; dir++) { ^ /root/JavaX-Caches/tmp_16794838/main.java:224: error: class, interface, or enum expected for (int dir = 1; dir <= 8; dir++) { ^ /root/JavaX-Caches/tmp_16794838/main.java:224: error: class, interface, or enum expected for (int dir = 1; dir <= 8; dir++) { ^ /root/JavaX-Caches/tmp_16794838/main.java:226: error: class, interface, or enum expected byte value = getPixel(p2); ^ /root/JavaX-Caches/tmp_16794838/main.java:227: error: class, interface, or enum expected if (value == 2 && !range.contains(p2)) ^ /root/JavaX-Caches/tmp_16794838/main.java:229: error: class, interface, or enum expected else if (value == 1) ^ /root/JavaX-Caches/tmp_16794838/main.java:231: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_16794838/main.java:235: error: class, interface, or enum expected printVars ifdef G22RegionThinner_debug(+p, +surroundingInnerPixels, +surroundingBorderPixels, +deletable, +range); ^ /root/JavaX-Caches/tmp_16794838/main.java:236: error: class, interface, or enum expected ret deletable; ^ 100 errors only showing the first 100 errors, of 121 total; use -Xmaxerrs if you would like to see more