Wrote /root/JavaX-Caches/tmp_276067378/main.java - 2625 bytes (written=2625, should be 2625)
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_1835493542 /root/JavaX-Caches/tmp_276067378/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_276067378/main.java:1: error: class, interface, or enum expected
static int leven_limited(S left, S right, int threshold) {
^
/root/JavaX-Caches/tmp_276067378/main.java:4: error: class, interface, or enum expected
int n = left.length(); // length of left
^
/root/JavaX-Caches/tmp_276067378/main.java:5: error: class, interface, or enum expected
int m = right.length(); // length of right
^
/root/JavaX-Caches/tmp_276067378/main.java:9: error: class, interface, or enum expected
if (n == 0) {
^
/root/JavaX-Caches/tmp_276067378/main.java:11: error: class, interface, or enum expected
} else if (m == 0) {
^
/root/JavaX-Caches/tmp_276067378/main.java:13: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_276067378/main.java:17: error: class, interface, or enum expected
final S tmp = left;
^
/root/JavaX-Caches/tmp_276067378/main.java:18: error: class, interface, or enum expected
left = right;
^
/root/JavaX-Caches/tmp_276067378/main.java:19: error: class, interface, or enum expected
right = tmp;
^
/root/JavaX-Caches/tmp_276067378/main.java:20: error: class, interface, or enum expected
n = m;
^
/root/JavaX-Caches/tmp_276067378/main.java:21: error: class, interface, or enum expected
m = right.length();
^
/root/JavaX-Caches/tmp_276067378/main.java:22: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_276067378/main.java:25: error: class, interface, or enum expected
int[] d = new int[n + 1]; // cost array, horizontally
^
/root/JavaX-Caches/tmp_276067378/main.java:26: error: class, interface, or enum expected
int[] tempD; // placeholder to assist in swapping p and d
^
/root/JavaX-Caches/tmp_276067378/main.java:29: error: class, interface, or enum expected
final int boundary = Math.min(n, threshold) + 1;
^
/root/JavaX-Caches/tmp_276067378/main.java:30: error: class, interface, or enum expected
for (int i = 0; i < boundary; i++) {
^
/root/JavaX-Caches/tmp_276067378/main.java:30: error: class, interface, or enum expected
for (int i = 0; i < boundary; i++) {
^
/root/JavaX-Caches/tmp_276067378/main.java:30: error: class, interface, or enum expected
for (int i = 0; i < boundary; i++) {
^
/root/JavaX-Caches/tmp_276067378/main.java:32: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_276067378/main.java:36: error: class, interface, or enum expected
Arrays.fill(d, Integer.MAX_VALUE);
^
/root/JavaX-Caches/tmp_276067378/main.java:39: error: class, interface, or enum expected
for (long _j = 1; _j <= m; _j++) {
^
/root/JavaX-Caches/tmp_276067378/main.java:39: error: class, interface, or enum expected
for (long _j = 1; _j <= m; _j++) {
^
/root/JavaX-Caches/tmp_276067378/main.java:39: error: class, interface, or enum expected
for (long _j = 1; _j <= m; _j++) {
^
/root/JavaX-Caches/tmp_276067378/main.java:41: error: class, interface, or enum expected
final char rightJ = right.charAt(j - 1); // jth character of right
^
/root/JavaX-Caches/tmp_276067378/main.java:42: error: class, interface, or enum expected
d[0] = j;
^
/root/JavaX-Caches/tmp_276067378/main.java:45: error: class, interface, or enum expected
final int min = Math.max(1, j - threshold);
^
/root/JavaX-Caches/tmp_276067378/main.java:46: error: class, interface, or enum expected
final int max = j > Integer.MAX_VALUE - threshold ? n : Math.min(
^
/root/JavaX-Caches/tmp_276067378/main.java:51: error: class, interface, or enum expected
if (min > max) {
^
/root/JavaX-Caches/tmp_276067378/main.java:53: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_276067378/main.java:58: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_276067378/main.java:61: error: class, interface, or enum expected
for (int i = min; i <= max; i++) {
^
/root/JavaX-Caches/tmp_276067378/main.java:61: error: class, interface, or enum expected
for (int i = min; i <= max; i++) {
^
/root/JavaX-Caches/tmp_276067378/main.java:65: error: class, interface, or enum expected
} else {
^
/root/JavaX-Caches/tmp_276067378/main.java:69: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_276067378/main.java:74: error: class, interface, or enum expected
p = d;
^
/root/JavaX-Caches/tmp_276067378/main.java:75: error: class, interface, or enum expected
d = tempD;
^
/root/JavaX-Caches/tmp_276067378/main.java:76: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_276067378/main.java:83: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_276067378/main.java:85: error: class, interface, or enum expected
}
^
39 errors