Wrote /root/JavaX-Caches/tmp_1944592128/main.java - 2856 bytes (written=2856, should be 2856)
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_1172815182 /root/JavaX-Caches/tmp_1944592128/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_1944592128/main.java:4: error: class, interface, or enum expected
srecord noeq ZhangSuenDemo(S image) {
^
/root/JavaX-Caches/tmp_1944592128/main.java:7: error: class, interface, or enum expected
static final int[][] nbrs = {{0, -1}, {1, -1}, {1, 0}, {1, 1}, {0, 1},
^
/root/JavaX-Caches/tmp_1944592128/main.java:10: error: class, interface, or enum expected
static final int[][][] nbrGroups = {{{0, 2, 4}, {2, 4, 6}}, {{0, 2, 6},
^
/root/JavaX-Caches/tmp_1944592128/main.java:13: error: class, interface, or enum expected
List toWhite = new ArrayList<>();
^
/root/JavaX-Caches/tmp_1944592128/main.java:14: error: class, interface, or enum expected
char[][] grid;
^
/root/JavaX-Caches/tmp_1944592128/main.java:16: error: class, interface, or enum expected
S get() {
^
/root/JavaX-Caches/tmp_1944592128/main.java:18: error: class, interface, or enum expected
grid = new char[image.length][];
^
/root/JavaX-Caches/tmp_1944592128/main.java:19: error: class, interface, or enum expected
for (int r = 0; r < image.length; r++)
^
/root/JavaX-Caches/tmp_1944592128/main.java:19: error: class, interface, or enum expected
for (int r = 0; r < image.length; r++)
^
/root/JavaX-Caches/tmp_1944592128/main.java:19: error: class, interface, or enum expected
for (int r = 0; r < image.length; r++)
^
/root/JavaX-Caches/tmp_1944592128/main.java:22: error: class, interface, or enum expected
thinImage();
^
/root/JavaX-Caches/tmp_1944592128/main.java:24: error: class, interface, or enum expected
ret charGridToString(grid);
^
/root/JavaX-Caches/tmp_1944592128/main.java:25: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1944592128/main.java:29: error: class, interface, or enum expected
boolean hasChanged;
^
/root/JavaX-Caches/tmp_1944592128/main.java:31: error: class, interface, or enum expected
do {
^
/root/JavaX-Caches/tmp_1944592128/main.java:33: error: class, interface, or enum expected
firstStep = !firstStep;
^
/root/JavaX-Caches/tmp_1944592128/main.java:35: error: class, interface, or enum expected
for (int r = 1; r < grid.length - 1; r++) {
^
/root/JavaX-Caches/tmp_1944592128/main.java:35: error: class, interface, or enum expected
for (int r = 1; r < grid.length - 1; r++) {
^
/root/JavaX-Caches/tmp_1944592128/main.java:35: error: class, interface, or enum expected
for (int r = 1; r < grid.length - 1; r++) {
^
/root/JavaX-Caches/tmp_1944592128/main.java:36: error: class, interface, or enum expected
for (int c = 1; c < grid[0].length - 1; c++) {
^
/root/JavaX-Caches/tmp_1944592128/main.java:36: error: class, interface, or enum expected
for (int c = 1; c < grid[0].length - 1; c++) {
^
/root/JavaX-Caches/tmp_1944592128/main.java:41: error: class, interface, or enum expected
int nn = numNeighbors(r, c);
^
/root/JavaX-Caches/tmp_1944592128/main.java:42: error: class, interface, or enum expected
if (nn < 2 || nn > 6)
^
/root/JavaX-Caches/tmp_1944592128/main.java:45: error: class, interface, or enum expected
if (numTransitions(r, c) != 1)
^
/root/JavaX-Caches/tmp_1944592128/main.java:48: error: class, interface, or enum expected
if (!atLeastOneIsWhite(r, c, firstStep ? 0 : 1))
^
/root/JavaX-Caches/tmp_1944592128/main.java:51: error: class, interface, or enum expected
toWhite.add(new Point(c, r));
^
/root/JavaX-Caches/tmp_1944592128/main.java:52: error: class, interface, or enum expected
print("Clearing " + c + "/" + r);
^
/root/JavaX-Caches/tmp_1944592128/main.java:53: error: class, interface, or enum expected
hasChanged = true;
^
/root/JavaX-Caches/tmp_1944592128/main.java:54: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1944592128/main.java:59: error: class, interface, or enum expected
toWhite.clear();
^
/root/JavaX-Caches/tmp_1944592128/main.java:61: error: class, interface, or enum expected
} while (firstStep || hasChanged);
^
/root/JavaX-Caches/tmp_1944592128/main.java:63: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1944592128/main.java:67: error: class, interface, or enum expected
for (int i = 0; i < nbrs.length - 1; i++)
^
/root/JavaX-Caches/tmp_1944592128/main.java:67: error: class, interface, or enum expected
for (int i = 0; i < nbrs.length - 1; i++)
^
/root/JavaX-Caches/tmp_1944592128/main.java:67: error: class, interface, or enum expected
for (int i = 0; i < nbrs.length - 1; i++)
^
/root/JavaX-Caches/tmp_1944592128/main.java:70: error: class, interface, or enum expected
return count;
^
/root/JavaX-Caches/tmp_1944592128/main.java:71: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1944592128/main.java:75: error: class, interface, or enum expected
for (int i = 0; i < nbrs.length - 1; i++)
^
/root/JavaX-Caches/tmp_1944592128/main.java:75: error: class, interface, or enum expected
for (int i = 0; i < nbrs.length - 1; i++)
^
/root/JavaX-Caches/tmp_1944592128/main.java:75: error: class, interface, or enum expected
for (int i = 0; i < nbrs.length - 1; i++)
^
/root/JavaX-Caches/tmp_1944592128/main.java:79: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1944592128/main.java:81: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1944592128/main.java:85: error: class, interface, or enum expected
int[][] group = nbrGroups[step];
^
/root/JavaX-Caches/tmp_1944592128/main.java:86: error: class, interface, or enum expected
for (int i = 0; i < 2; i++)
^
/root/JavaX-Caches/tmp_1944592128/main.java:86: error: class, interface, or enum expected
for (int i = 0; i < 2; i++)
^
/root/JavaX-Caches/tmp_1944592128/main.java:86: error: class, interface, or enum expected
for (int i = 0; i < 2; i++)
^
/root/JavaX-Caches/tmp_1944592128/main.java:87: error: class, interface, or enum expected
for (int j = 0; j < group[i].length; j++) {
^
/root/JavaX-Caches/tmp_1944592128/main.java:87: error: class, interface, or enum expected
for (int j = 0; j < group[i].length; j++) {
^
/root/JavaX-Caches/tmp_1944592128/main.java:89: error: class, interface, or enum expected
if (grid[r + nbr[1]][c + nbr[0]] == empty) {
^
/root/JavaX-Caches/tmp_1944592128/main.java:91: error: class, interface, or enum expected
break;
^
/root/JavaX-Caches/tmp_1944592128/main.java:92: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1944592128/main.java:95: error: class, interface, or enum expected
}
^
52 errors