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

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

/root/JavaX-Caches/tmp_422576704/main.java:1: error: class, interface, or enum expected !include #1000522 // image helper functions ^ /root/JavaX-Caches/tmp_422576704/main.java:1: error: illegal character: '#' !include #1000522 // image helper functions ^ /root/JavaX-Caches/tmp_422576704/main.java:8: error: class, interface, or enum expected sclass Best { ^ /root/JavaX-Caches/tmp_422576704/main.java:10: error: class, interface, or enum expected double score; ^ /root/JavaX-Caches/tmp_422576704/main.java:11: error: class, interface, or enum expected Predictor renderer; ^ /root/JavaX-Caches/tmp_422576704/main.java:13: error: class, interface, or enum expected *() {} ^ /root/JavaX-Caches/tmp_422576704/main.java:16: error: class, interface, or enum expected int l() { ret main.l(desc); } ^ /root/JavaX-Caches/tmp_422576704/main.java:21: error: class, interface, or enum expected float[][] bwCols; // in columns ^ /root/JavaX-Caches/tmp_422576704/main.java:22: error: class, interface, or enum expected bool testFirst; // test first column? ^ /root/JavaX-Caches/tmp_422576704/main.java:23: error: class, interface, or enum expected new LinkedBlockingQueue<S> newProducts; ^ /root/JavaX-Caches/tmp_422576704/main.java:24: error: class, interface, or enum expected int maxQueueLength = 10; ^ /root/JavaX-Caches/tmp_422576704/main.java:25: error: class, interface, or enum expected volatile Best shortest100, best; ^ /root/JavaX-Caches/tmp_422576704/main.java:26: error: class, interface, or enum expected int pivotLength = -1; // no length punishment at start ^ /root/JavaX-Caches/tmp_422576704/main.java:27: error: class, interface, or enum expected int pivotStep = 1; ^ /root/JavaX-Caches/tmp_422576704/main.java:28: error: class, interface, or enum expected O startProduction; // optional runnable that starts production ^ /root/JavaX-Caches/tmp_422576704/main.java:30: error: class, interface, or enum expected void push(S product) { ^ /root/JavaX-Caches/tmp_422576704/main.java:32: error: class, interface, or enum expected while (newProducts.size() >= maxQueueLength && mayRun()) ^ /root/JavaX-Caches/tmp_422576704/main.java:34: error: class, interface, or enum expected newProducts.add(product); ^ /root/JavaX-Caches/tmp_422576704/main.java:35: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_422576704/main.java:39: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_422576704/main.java:43: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_422576704/main.java:47: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_422576704/main.java:52: error: class, interface, or enum expected long lastPrint = 0, lastN = 0; ^ /root/JavaX-Caches/tmp_422576704/main.java:53: error: class, interface, or enum expected for (long ntry = 1; ; ntry++) { ^ /root/JavaX-Caches/tmp_422576704/main.java:53: error: class, interface, or enum expected for (long ntry = 1; ; ntry++) { ^ /root/JavaX-Caches/tmp_422576704/main.java:55: error: class, interface, or enum expected long now = now(); ^ /root/JavaX-Caches/tmp_422576704/main.java:56: error: class, interface, or enum expected if (now >= lastPrint+1000) { ^ /root/JavaX-Caches/tmp_422576704/main.java:58: error: class, interface, or enum expected lastPrint = now; ^ /root/JavaX-Caches/tmp_422576704/main.java:59: error: class, interface, or enum expected lastN = ntry; ^ /root/JavaX-Caches/tmp_422576704/main.java:60: error: class, interface, or enum expected String s = "Try " + ntry + " (" + tps + "/s)"; ^ /root/JavaX-Caches/tmp_422576704/main.java:67: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_422576704/main.java:69: error: class, interface, or enum expected Predictor p; ^ /root/JavaX-Caches/tmp_422576704/main.java:70: error: class, interface, or enum expected try { ^ /root/JavaX-Caches/tmp_422576704/main.java:72: error: class, interface, or enum expected } catch { ^ /root/JavaX-Caches/tmp_422576704/main.java:74: error: class, interface, or enum expected continue; ^ /root/JavaX-Caches/tmp_422576704/main.java:75: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_422576704/main.java:78: error: class, interface, or enum expected double score = testPredictor(p); ^ /root/JavaX-Caches/tmp_422576704/main.java:79: error: class, interface, or enum expected print(" Score: " + score); ^ /root/JavaX-Caches/tmp_422576704/main.java:80: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_422576704/main.java:85: error: class, interface, or enum expected try { ^ /root/JavaX-Caches/tmp_422576704/main.java:87: error: class, interface, or enum expected } catch { ^ /root/JavaX-Caches/tmp_422576704/main.java:89: error: class, interface, or enum expected null; ^ /root/JavaX-Caches/tmp_422576704/main.java:90: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_422576704/main.java:95: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_422576704/main.java:99: error: class, interface, or enum expected ret bwCols; ^ /root/JavaX-Caches/tmp_422576704/main.java:100: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_422576704/main.java:105: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_422576704/main.java:109: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_422576704/main.java:113: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_422576704/main.java:117: error: class, interface, or enum expected float[][] f = new float[w][h]; ^ /root/JavaX-Caches/tmp_422576704/main.java:118: error: class, interface, or enum expected for x to w: for y to h: f[x][y] = img.getPixel(x, y); ^ /root/JavaX-Caches/tmp_422576704/main.java:119: error: class, interface, or enum expected ret f; ^ /root/JavaX-Caches/tmp_422576704/main.java:120: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_422576704/main.java:124: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_422576704/main.java:128: error: class, interface, or enum expected int w = l(cols); ^ /root/JavaX-Caches/tmp_422576704/main.java:129: error: class, interface, or enum expected BWImage img = new BWImage(w, h, emptyBrightness); ^ /root/JavaX-Caches/tmp_422576704/main.java:130: error: class, interface, or enum expected for x to w: if (cols[x] != null) for y to h: ^ /root/JavaX-Caches/tmp_422576704/main.java:132: error: class, interface, or enum expected ret img; ^ /root/JavaX-Caches/tmp_422576704/main.java:133: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_422576704/main.java:137: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_422576704/main.java:141: error: class, interface, or enum expected double error = 0; ^ /root/JavaX-Caches/tmp_422576704/main.java:142: error: class, interface, or enum expected for (int x = testFirst ? 0 : 1; x < w; x++) { ^ /root/JavaX-Caches/tmp_422576704/main.java:142: error: class, interface, or enum expected for (int x = testFirst ? 0 : 1; x < w; x++) { ^ /root/JavaX-Caches/tmp_422576704/main.java:142: error: class, interface, or enum expected for (int x = testFirst ? 0 : 1; x < w; x++) { ^ /root/JavaX-Caches/tmp_422576704/main.java:144: error: class, interface, or enum expected error += colDiff(f, bwCols[x]); ^ /root/JavaX-Caches/tmp_422576704/main.java:145: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_422576704/main.java:147: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_422576704/main.java:153: error: class, interface, or enum expected double error = 0; ^ /root/JavaX-Caches/tmp_422576704/main.java:154: error: class, interface, or enum expected for (int x = x0; x < x2; x++) { ^ /root/JavaX-Caches/tmp_422576704/main.java:154: error: class, interface, or enum expected for (int x = x0; x < x2; x++) { ^ /root/JavaX-Caches/tmp_422576704/main.java:154: error: class, interface, or enum expected for (int x = x0; x < x2; x++) { ^ /root/JavaX-Caches/tmp_422576704/main.java:156: error: class, interface, or enum expected if (x >= x1) ^ /root/JavaX-Caches/tmp_422576704/main.java:158: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_422576704/main.java:160: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_422576704/main.java:164: error: class, interface, or enum expected if (b == null) ret l(a); ^ /root/JavaX-Caches/tmp_422576704/main.java:165: error: class, interface, or enum expected int n = l(a); ^ /root/JavaX-Caches/tmp_422576704/main.java:166: error: class, interface, or enum expected double d = 0; ^ /root/JavaX-Caches/tmp_422576704/main.java:167: error: class, interface, or enum expected for (int i = 0; i < n; i++) ^ /root/JavaX-Caches/tmp_422576704/main.java:167: error: class, interface, or enum expected for (int i = 0; i < n; i++) ^ /root/JavaX-Caches/tmp_422576704/main.java:167: error: class, interface, or enum expected for (int i = 0; i < n; i++) ^ /root/JavaX-Caches/tmp_422576704/main.java:169: error: class, interface, or enum expected ret d; ^ /root/JavaX-Caches/tmp_422576704/main.java:170: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_422576704/main.java:174: error: class, interface, or enum expected int w = l(bwCols), h = l(bwCols[0]); ^ /root/JavaX-Caches/tmp_422576704/main.java:175: error: class, interface, or enum expected float[][] cols = new float[w][]; ^ /root/JavaX-Caches/tmp_422576704/main.java:176: error: class, interface, or enum expected for (int x = 0; x < w; x++) { ^ /root/JavaX-Caches/tmp_422576704/main.java:176: error: class, interface, or enum expected for (int x = 0; x < w; x++) { ^ /root/JavaX-Caches/tmp_422576704/main.java:176: error: class, interface, or enum expected for (int x = 0; x < w; x++) { ^ /root/JavaX-Caches/tmp_422576704/main.java:178: error: class, interface, or enum expected cols[x] = f; ^ /root/JavaX-Caches/tmp_422576704/main.java:179: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_422576704/main.java:181: error: class, interface, or enum expected } ^ 90 errors