Wrote /root/JavaX-Caches/tmp_367665672/main.java - 1236 bytes (written=1236, should be 1236)
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_207296062 /root/JavaX-Caches/tmp_367665672/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_367665672/main.java:1: error: class, interface, or enum expected
scope regionBorder_innerPoints.
^
/root/JavaX-Caches/tmp_367665672/main.java:3: error: illegal character: '#'
static Pt[] #directions = {
^
/root/JavaX-Caches/tmp_367665672/main.java:7: error: class, interface, or enum expected
static L regionBorder_innerPoints(BWImage_FastRegions regions, int iRegion) {
^
/root/JavaX-Caches/tmp_367665672/main.java:9: error: class, interface, or enum expected
Pt p = regions.samplePixel(iRegion);
^
/root/JavaX-Caches/tmp_367665672/main.java:10: error: class, interface, or enum expected
int x = p.x, y = p.y;
^
/root/JavaX-Caches/tmp_367665672/main.java:15: error: class, interface, or enum expected
while (y > 0 && regions.inRegion(iRegion, x, y-1))
^
/root/JavaX-Caches/tmp_367665672/main.java:19: error: class, interface, or enum expected
int dir = 3; // direction up
^
/root/JavaX-Caches/tmp_367665672/main.java:22: error: class, interface, or enum expected
int firstX = x, firstY = y;
^
/root/JavaX-Caches/tmp_367665672/main.java:24: error: class, interface, or enum expected
int safety = regions.size();
^
/root/JavaX-Caches/tmp_367665672/main.java:25: error: class, interface, or enum expected
loop: do {
^
/root/JavaX-Caches/tmp_367665672/main.java:27: error: class, interface, or enum expected
for (int turn = 3; turn <= 6; turn++) { // try left, straight, right, back
^
/root/JavaX-Caches/tmp_367665672/main.java:27: error: class, interface, or enum expected
for (int turn = 3; turn <= 6; turn++) { // try left, straight, right, back
^
/root/JavaX-Caches/tmp_367665672/main.java:27: error: class, interface, or enum expected
for (int turn = 3; turn <= 6; turn++) { // try left, straight, right, back
^
/root/JavaX-Caches/tmp_367665672/main.java:29: error: class, interface, or enum expected
Pt d = directions[newDir];
^
/root/JavaX-Caches/tmp_367665672/main.java:30: error: class, interface, or enum expected
int x2 = x+d.x, y2 = y+d.y;
^
/root/JavaX-Caches/tmp_367665672/main.java:31: error: class, interface, or enum expected
if (regions.inRegion(x2, y2, iRegion)) {
^
/root/JavaX-Caches/tmp_367665672/main.java:32: error: class, interface, or enum expected
x = x2; y = y2; dir = newDir;
^
/root/JavaX-Caches/tmp_367665672/main.java:32: error: class, interface, or enum expected
x = x2; y = y2; dir = newDir;
^
/root/JavaX-Caches/tmp_367665672/main.java:33: error: class, interface, or enum expected
continue loop;
^
/root/JavaX-Caches/tmp_367665672/main.java:34: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_367665672/main.java:39: error: class, interface, or enum expected
} while ((x != firstX || y != firstY) && --safety >= 0);
^
/root/JavaX-Caches/tmp_367665672/main.java:41: error: class, interface, or enum expected
ret out;
^
/root/JavaX-Caches/tmp_367665672/main.java:42: error: class, interface, or enum expected
}
^
23 errors