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

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

/root/JavaX-Caches/tmp_903558769/main.java:1: error: class, interface, or enum expected srecord noeq G22_RegionToSSIs_v2(IImageRegion region) extends Meta { ^ /root/JavaX-Caches/tmp_903558769/main.java:3: error: class, interface, or enum expected L<SSI> ssis; ^ /root/JavaX-Caches/tmp_903558769/main.java:4: error: class, interface, or enum expected new L<GrowingSSI> growingSSIs; ^ /root/JavaX-Caches/tmp_903558769/main.java:5: error: class, interface, or enum expected settable bool withDiagonals; ^ /root/JavaX-Caches/tmp_903558769/main.java:6: error: class, interface, or enum expected settable bool checkCoherence = true; ^ /root/JavaX-Caches/tmp_903558769/main.java:7: error: class, interface, or enum expected settable bool checkStreaks = true; ^ /root/JavaX-Caches/tmp_903558769/main.java:9: error: class, interface, or enum expected private int x1, y; ^ /root/JavaX-Caches/tmp_903558769/main.java:12: error: <identifier> expected settable int y1; ^ /root/JavaX-Caches/tmp_903558769/main.java:13: error: illegal start of type new ShortBuffer data; ^ /root/JavaX-Caches/tmp_903558769/main.java:15: error: ';' expected int y2() { ret y1+l(data)/2; } ^ /root/JavaX-Caches/tmp_903558769/main.java:15: error: not a statement int y2() { ret y1+l(data)/2; } ^ /root/JavaX-Caches/tmp_903558769/main.java:18: error: ';' expected ret addAndReturn(ssis, new SSI(y1, y2()).data(data.toArray()) ^ /root/JavaX-Caches/tmp_903558769/main.java:18: error: not a statement ret addAndReturn(ssis, new SSI(y1, y2()).data(data.toArray()) ^ /root/JavaX-Caches/tmp_903558769/main.java:18: error: ';' expected ret addAndReturn(ssis, new SSI(y1, y2()).data(data.toArray()) ^ /root/JavaX-Caches/tmp_903558769/main.java:19: error: ';' expected .color(color)); ^ /root/JavaX-Caches/tmp_903558769/main.java:22: error: ';' expected bool isEmpty() { ret data.isEmpty(); } ^ /root/JavaX-Caches/tmp_903558769/main.java:23: error: ';' expected int lastx1() { ret data.get(l(data)-2); } ^ /root/JavaX-Caches/tmp_903558769/main.java:24: error: ';' expected int lastx2() { ret data.get(l(data)-1); } ^ /root/JavaX-Caches/tmp_903558769/main.java:25: error: ';' expected IntRange lastRange() { ret isEmpty() ? null : intRange(lastx1(), lastx2()); } ^ /root/JavaX-Caches/tmp_903558769/main.java:29: error: ';' expected ret isEmpty() ^ /root/JavaX-Caches/tmp_903558769/main.java:42: error: class, interface, or enum expected void finishSSI(int iSSI) { ^ /root/JavaX-Caches/tmp_903558769/main.java:44: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_903558769/main.java:48: error: class, interface, or enum expected var ssi = new GrowingSSI().y1(y); ^ /root/JavaX-Caches/tmp_903558769/main.java:49: error: class, interface, or enum expected ssi.add(range); ^ /root/JavaX-Caches/tmp_903558769/main.java:50: error: class, interface, or enum expected ret addAndReturn(growingSSIs, iSSI, ssi); ^ /root/JavaX-Caches/tmp_903558769/main.java:51: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_903558769/main.java:55: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_903558769/main.java:57: error: class, interface, or enum expected int diag() { ret withDiagonals ? 1 : 0; } ^ /root/JavaX-Caches/tmp_903558769/main.java:62: error: class, interface, or enum expected color = region.color(); ^ /root/JavaX-Caches/tmp_903558769/main.java:63: error: class, interface, or enum expected ssis = new L; ^ /root/JavaX-Caches/tmp_903558769/main.java:64: error: class, interface, or enum expected Rect r = region.bounds(); ^ /root/JavaX-Caches/tmp_903558769/main.java:65: error: class, interface, or enum expected int x1 = this.x1 = r.x1(), y1 = r.y1(), y2 = r.y2(), h = y2-y1, w = r.w; ^ /root/JavaX-Caches/tmp_903558769/main.java:66: error: class, interface, or enum expected bool scaff = scaffoldingEnabled(); ^ /root/JavaX-Caches/tmp_903558769/main.java:68: error: class, interface, or enum expected for (y = y1; y < y2; y++) { ^ /root/JavaX-Caches/tmp_903558769/main.java:68: error: class, interface, or enum expected for (y = y1; y < y2; y++) { ^ /root/JavaX-Caches/tmp_903558769/main.java:68: error: class, interface, or enum expected for (y = y1; y < y2; y++) { ^ /root/JavaX-Caches/tmp_903558769/main.java:70: error: class, interface, or enum expected L<IntRange> streaks = shiftIntRanges(x1, genericStreaks(w, x -> region.contains(x1+x, y))); ^ /root/JavaX-Caches/tmp_903558769/main.java:72: error: class, interface, or enum expected var lastStreaks = lastStreaks(); ^ /root/JavaX-Caches/tmp_903558769/main.java:73: error: class, interface, or enum expected if (checkStreaks()) ^ /root/JavaX-Caches/tmp_903558769/main.java:77: error: class, interface, or enum expected int iStreak = 0, iSSI = 0; ^ /root/JavaX-Caches/tmp_903558769/main.java:78: error: class, interface, or enum expected int nStreaks = l(streaks); ^ /root/JavaX-Caches/tmp_903558769/main.java:80: error: class, interface, or enum expected if (scaff) printVars(+y, +lastStreaks, +streaks); ^ /root/JavaX-Caches/tmp_903558769/main.java:82: error: class, interface, or enum expected while ping (iStreak < nStreaks) { ^ /root/JavaX-Caches/tmp_903558769/main.java:84: error: class, interface, or enum expected var ssi = _get(growingSSIs, iSSI); ^ /root/JavaX-Caches/tmp_903558769/main.java:85: error: class, interface, or enum expected if (scaff) printVars(+y, +iStreak, +iSSI, +range, ssi := ssi?.lastRange()); ^ /root/JavaX-Caches/tmp_903558769/main.java:95: error: class, interface, or enum expected if (ssi == null || range.end <= ssi.lastx1()-diag()) { ^ /root/JavaX-Caches/tmp_903558769/main.java:97: error: class, interface, or enum expected ++iStreak; ^ /root/JavaX-Caches/tmp_903558769/main.java:98: error: class, interface, or enum expected continue; ^ /root/JavaX-Caches/tmp_903558769/main.java:99: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_903558769/main.java:109: error: class, interface, or enum expected continue; ^ /root/JavaX-Caches/tmp_903558769/main.java:110: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_903558769/main.java:117: error: class, interface, or enum expected while (jStreak < nStreaks && ssi.canAdd(streaks.get(jStreak))) ^ /root/JavaX-Caches/tmp_903558769/main.java:121: error: class, interface, or enum expected int jSSI = iSSI+1; ^ /root/JavaX-Caches/tmp_903558769/main.java:122: error: class, interface, or enum expected while (jSSI < l(growingSSIs) && growingSSIs.get(jSSI).canAdd(range)) ^ /root/JavaX-Caches/tmp_903558769/main.java:125: error: class, interface, or enum expected int nSSI = jSSI-iSSI, nStreak = jStreak-iStreak; ^ /root/JavaX-Caches/tmp_903558769/main.java:126: error: class, interface, or enum expected if (scaff) printVars(+nSSI, +nStreak); ^ /root/JavaX-Caches/tmp_903558769/main.java:127: error: class, interface, or enum expected new Best<Int> best; ^ /root/JavaX-Caches/tmp_903558769/main.java:129: error: class, interface, or enum expected if (nSSI > 1) { ^ /root/JavaX-Caches/tmp_903558769/main.java:136: error: class, interface, or enum expected for (int idx = iSSI; idx < jSSI; idx++) ^ /root/JavaX-Caches/tmp_903558769/main.java:136: error: class, interface, or enum expected for (int idx = iSSI; idx < jSSI; idx++) ^ /root/JavaX-Caches/tmp_903558769/main.java:136: error: class, interface, or enum expected for (int idx = iSSI; idx < jSSI; idx++) ^ /root/JavaX-Caches/tmp_903558769/main.java:138: error: class, interface, or enum expected jSSI = best!; ^ /root/JavaX-Caches/tmp_903558769/main.java:140: error: class, interface, or enum expected while (jSSI-- > iSSI) finishSSI(iSSI); ^ /root/JavaX-Caches/tmp_903558769/main.java:141: error: class, interface, or enum expected } else if (nStreak > 1) { ^ /root/JavaX-Caches/tmp_903558769/main.java:143: error: class, interface, or enum expected for (int idx = iStreak; idx < jStreak; idx++) ^ /root/JavaX-Caches/tmp_903558769/main.java:143: error: class, interface, or enum expected for (int idx = iStreak; idx < jStreak; idx++) ^ /root/JavaX-Caches/tmp_903558769/main.java:145: error: class, interface, or enum expected jStreak = best!; ^ /root/JavaX-Caches/tmp_903558769/main.java:147: error: class, interface, or enum expected while (iStreak < jStreak) ^ /root/JavaX-Caches/tmp_903558769/main.java:149: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_903558769/main.java:153: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_903558769/main.java:157: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_903558769/main.java:162: error: class, interface, or enum expected ret ssis; ^ /root/JavaX-Caches/tmp_903558769/main.java:163: error: class, interface, or enum expected } ^ 73 errors