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

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

/root/JavaX-Caches/tmp_181417271/main.java:6: error: class, interface, or enum expected abstract srecord noeq DifferentialRegionsMaker<Img extends WidthAndHeight>(Img image) is Runnable, IImageRegions<Img> { ^ /root/JavaX-Caches/tmp_181417271/main.java:8: error: class, interface, or enum expected gettable int size; // =w*h ^ /root/JavaX-Caches/tmp_181417271/main.java:10: error: class, interface, or enum expected new IntBuffer stack; // locations as y*w+x ^ /root/JavaX-Caches/tmp_181417271/main.java:11: error: class, interface, or enum expected gettable int[] regionMatrix; // for each pixel: region index (starting at 1) ^ /root/JavaX-Caches/tmp_181417271/main.java:12: error: class, interface, or enum expected new IntBuffer regionPixels; // collect all pixels for regions ^ /root/JavaX-Caches/tmp_181417271/main.java:14: error: class, interface, or enum expected settable bool withDiagonals; // also walk diagonally? ^ /root/JavaX-Caches/tmp_181417271/main.java:18: error: class, interface, or enum expected settable double tolerance = 0.05; ^ /root/JavaX-Caches/tmp_181417271/main.java:22: error: class, interface, or enum expected new IntBuffer regionFirstPixel; // for each region: index of first pixel found in regionPixels ^ /root/JavaX-Caches/tmp_181417271/main.java:23: error: class, interface, or enum expected new IntBuffer regionSize; // for each region: number of pixels ^ /root/JavaX-Caches/tmp_181417271/main.java:24: error: class, interface, or enum expected new IntBuffer regionBounds; // for each region: bounds (x1, y1, x2, y2) ^ /root/JavaX-Caches/tmp_181417271/main.java:27: error: class, interface, or enum expected new L<IntBuffer> regionsBySize; ^ /root/JavaX-Caches/tmp_181417271/main.java:29: error: class, interface, or enum expected int regionCounter; ^ /root/JavaX-Caches/tmp_181417271/main.java:30: error: class, interface, or enum expected bool verbose; ^ /root/JavaX-Caches/tmp_181417271/main.java:32: error: class, interface, or enum expected double regionStep = .1; // for rendering in regionsImage ^ /root/JavaX-Caches/tmp_181417271/main.java:34: error: class, interface, or enum expected int x(int pos) { ret pos % w; } ^ /root/JavaX-Caches/tmp_181417271/main.java:34: error: class, interface, or enum expected int x(int pos) { ret pos % w; } ^ /root/JavaX-Caches/tmp_181417271/main.java:35: error: class, interface, or enum expected int y(int pos) { ret pos / w; } ^ /root/JavaX-Caches/tmp_181417271/main.java:36: error: class, interface, or enum expected int pos(int x, int y) { ret y*w+x; } ^ /root/JavaX-Caches/tmp_181417271/main.java:37: error: class, interface, or enum expected Pt pt(int pos) { ret Pt(x(pos), y(pos)); } ^ /root/JavaX-Caches/tmp_181417271/main.java:38: error: class, interface, or enum expected bool validPos(int x, int y) { ret x >= 0 && y >= 0 && x < w && y < h; } ^ /root/JavaX-Caches/tmp_181417271/main.java:40: error: class, interface, or enum expected abstract int getRGB(int pos); ^ /root/JavaX-Caches/tmp_181417271/main.java:42: error: class, interface, or enum expected bool similarPixels(int pos1, int pos2) { ^ /root/JavaX-Caches/tmp_181417271/main.java:44: error: class, interface, or enum expected int col2 = getRGB(pos2); ^ /root/JavaX-Caches/tmp_181417271/main.java:45: error: class, interface, or enum expected ret rgbDiff(col1, col2) <= tolerance; ^ /root/JavaX-Caches/tmp_181417271/main.java:46: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_181417271/main.java:51: error: class, interface, or enum expected if (withDiagonals) fail("Can't handle diagonals yet"); ^ /root/JavaX-Caches/tmp_181417271/main.java:53: error: class, interface, or enum expected w = image.getWidth(); h = image.getHeight(); ^ /root/JavaX-Caches/tmp_181417271/main.java:53: error: class, interface, or enum expected w = image.getWidth(); h = image.getHeight(); ^ /root/JavaX-Caches/tmp_181417271/main.java:54: error: class, interface, or enum expected size = w*h; ^ /root/JavaX-Caches/tmp_181417271/main.java:55: error: class, interface, or enum expected regionMatrix = new int[size]; ^ /root/JavaX-Caches/tmp_181417271/main.java:58: error: class, interface, or enum expected regionFirstPixel?.add(0); ^ /root/JavaX-Caches/tmp_181417271/main.java:59: error: class, interface, or enum expected regionSize?.add(0); ^ /root/JavaX-Caches/tmp_181417271/main.java:61: error: class, interface, or enum expected regionPixels?.setSize(size); ^ /root/JavaX-Caches/tmp_181417271/main.java:63: error: class, interface, or enum expected while (runner < size) { ^ /root/JavaX-Caches/tmp_181417271/main.java:67: error: class, interface, or enum expected makeRegion_fast(); ^ /root/JavaX-Caches/tmp_181417271/main.java:68: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_181417271/main.java:74: error: class, interface, or enum expected regionFirstPixel?.add(regionPixels != null ? l(regionPixels) : runner); ^ /root/JavaX-Caches/tmp_181417271/main.java:75: error: class, interface, or enum expected stack.add(runner); ^ /root/JavaX-Caches/tmp_181417271/main.java:76: error: class, interface, or enum expected int rsize = 0, x1 = w, y1 = h, x2 = 0, y2 = 0; ^ /root/JavaX-Caches/tmp_181417271/main.java:77: error: class, interface, or enum expected ifdef FastRegions_debug ^ /root/JavaX-Caches/tmp_181417271/main.java:79: error: class, interface, or enum expected endifdef ^ /root/JavaX-Caches/tmp_181417271/main.java:84: error: class, interface, or enum expected if (regionMatrix[pos] != 0) continue; // check again if set in the meantime (color has been checked before) ^ /root/JavaX-Caches/tmp_181417271/main.java:87: error: class, interface, or enum expected int x = x(pos), y = y(pos); ^ /root/JavaX-Caches/tmp_181417271/main.java:90: error: class, interface, or enum expected int lineStart = pos-x; ^ /root/JavaX-Caches/tmp_181417271/main.java:91: error: class, interface, or enum expected int xLeft = x; ^ /root/JavaX-Caches/tmp_181417271/main.java:92: error: class, interface, or enum expected while (xLeft > 0 && addable(lineStart+xLeft-1, -1)) ^ /root/JavaX-Caches/tmp_181417271/main.java:96: error: class, interface, or enum expected int xRight = x+1; ^ /root/JavaX-Caches/tmp_181417271/main.java:97: error: class, interface, or enum expected while (xRight < w && addable(lineStart+xRight, 1)) ^ /root/JavaX-Caches/tmp_181417271/main.java:102: error: class, interface, or enum expected for (x = xLeft; x < xRight; x++) { ^ /root/JavaX-Caches/tmp_181417271/main.java:102: error: class, interface, or enum expected for (x = xLeft; x < xRight; x++) { ^ /root/JavaX-Caches/tmp_181417271/main.java:102: error: class, interface, or enum expected for (x = xLeft; x < xRight; x++) { ^ /root/JavaX-Caches/tmp_181417271/main.java:104: error: class, interface, or enum expected regionPixels?.add(lineStart+x); ^ /root/JavaX-Caches/tmp_181417271/main.java:105: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_181417271/main.java:110: error: class, interface, or enum expected ifdef FastRegions_debug ^ /root/JavaX-Caches/tmp_181417271/main.java:112: error: class, interface, or enum expected endifdef ^ /root/JavaX-Caches/tmp_181417271/main.java:116: error: class, interface, or enum expected if (xRight-1 > x2) x2 = xRight-1; ^ /root/JavaX-Caches/tmp_181417271/main.java:117: error: class, interface, or enum expected if (y < y1) y1 = y; ^ /root/JavaX-Caches/tmp_181417271/main.java:118: error: class, interface, or enum expected if (y > y2) y2 = y; ^ /root/JavaX-Caches/tmp_181417271/main.java:121: error: class, interface, or enum expected int xLeft2 = withDiagonals ? max(0, xLeft-1) : xLeft; ^ /root/JavaX-Caches/tmp_181417271/main.java:122: error: class, interface, or enum expected int xRight2 = withDiagonals ? min(w, xRight+1) : xRight; ^ /root/JavaX-Caches/tmp_181417271/main.java:123: error: class, interface, or enum expected if (y > 0) ^ /root/JavaX-Caches/tmp_181417271/main.java:125: error: class, interface, or enum expected if (y < h-1) ^ /root/JavaX-Caches/tmp_181417271/main.java:127: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_181417271/main.java:130: error: class, interface, or enum expected regionBounds?.addAll(x1, y1, x2+1, y2+1); ^ /root/JavaX-Caches/tmp_181417271/main.java:131: error: class, interface, or enum expected if (regionsBySize != null) { ^ /root/JavaX-Caches/tmp_181417271/main.java:133: error: class, interface, or enum expected var buffer = listGetOrCreate(regionsBySize, iBucket, -> new IntBuffer); ^ /root/JavaX-Caches/tmp_181417271/main.java:134: error: class, interface, or enum expected buffer.add(region); ^ /root/JavaX-Caches/tmp_181417271/main.java:135: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_181417271/main.java:141: error: class, interface, or enum expected if (!similarPixels(pos, pos-lastDirection)) false; ^ /root/JavaX-Caches/tmp_181417271/main.java:142: error: class, interface, or enum expected true; ^ /root/JavaX-Caches/tmp_181417271/main.java:143: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_181417271/main.java:147: error: class, interface, or enum expected stack.add(pos); ^ /root/JavaX-Caches/tmp_181417271/main.java:148: error: class, interface, or enum expected true; ^ /root/JavaX-Caches/tmp_181417271/main.java:149: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_181417271/main.java:153: error: class, interface, or enum expected while (x < xRight) { ^ /root/JavaX-Caches/tmp_181417271/main.java:159: error: class, interface, or enum expected ++x; ^ /root/JavaX-Caches/tmp_181417271/main.java:160: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_181417271/main.java:166: error: class, interface, or enum expected ret ((region-1)*regionStep) % (1.0+regionStep-0.0001); ^ /root/JavaX-Caches/tmp_181417271/main.java:167: error: class, interface, or enum expected }, w, h); ^ /root/JavaX-Caches/tmp_181417271/main.java:168: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_181417271/main.java:170: error: class, interface, or enum expected public int regionCount aka nRegions() { ret regionCounter; } ^ /root/JavaX-Caches/tmp_181417271/main.java:170: error: class, interface, or enum expected public int regionCount aka nRegions() { ret regionCounter; } ^ /root/JavaX-Caches/tmp_181417271/main.java:178: error: ';' expected int x() { ret DifferentialRegionsMaker.this.x(pos); } ^ /root/JavaX-Caches/tmp_181417271/main.java:179: error: ';' expected int y() { ret DifferentialRegionsMaker.this.y(pos); } ^ /root/JavaX-Caches/tmp_181417271/main.java:185: error: '{' expected class FloodRegionIterator > RegionIterator { ^ /root/JavaX-Caches/tmp_181417271/main.java:187: error: illegal start of type new IntBuffer stack; // locations as y*w+x ^ /root/JavaX-Caches/tmp_181417271/main.java:188: error: <identifier> expected BitSet seen = new(size); ^ /root/JavaX-Caches/tmp_181417271/main.java:190: error: illegal start of type *(int *region) { ^ /root/JavaX-Caches/tmp_181417271/main.java:190: error: <identifier> expected *(int *region) { ^ /root/JavaX-Caches/tmp_181417271/main.java:190: error: <identifier> expected *(int *region) { ^ /root/JavaX-Caches/tmp_181417271/main.java:199: error: not a statement if (empty(stack)) false; ^ /root/JavaX-Caches/tmp_181417271/main.java:210: error: not a statement true; ^ /root/JavaX-Caches/tmp_181417271/main.java:221: error: '{' expected class CachedRegionIterator > RegionIterator { ^ /root/JavaX-Caches/tmp_181417271/main.java:224: error: illegal start of type *(int region) { ^ /root/JavaX-Caches/tmp_181417271/main.java:224: error: ';' expected *(int region) { ^ /root/JavaX-Caches/tmp_181417271/main.java:228: error: ';' expected ifdef FastRegions_debug ^ /root/JavaX-Caches/tmp_181417271/main.java:229: error: ';' expected printVars CachedRegionIterator(+region, +i, +to); ^ /root/JavaX-Caches/tmp_181417271/main.java:229: error: not a statement printVars CachedRegionIterator(+region, +i, +to); ^ /root/JavaX-Caches/tmp_181417271/main.java:229: error: ';' expected printVars CachedRegionIterator(+region, +i, +to); ^ /root/JavaX-Caches/tmp_181417271/main.java:229: error: not a statement printVars CachedRegionIterator(+region, +i, +to); ^ 100 errors only showing the first 100 errors, of 171 total; use -Xmaxerrs if you would like to see more