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

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

/root/JavaX-Caches/tmp_1522717824/main.java:1: error: class, interface, or enum expected !include #1000522 // image helper functions ^ /root/JavaX-Caches/tmp_1522717824/main.java:1: error: illegal character: '#' !include #1000522 // image helper functions ^ /root/JavaX-Caches/tmp_1522717824/main.java:5: error: class, interface, or enum expected double score; ^ /root/JavaX-Caches/tmp_1522717824/main.java:6: error: class, interface, or enum expected Renderer renderer; ^ /root/JavaX-Caches/tmp_1522717824/main.java:7: error: class, interface, or enum expected BWImage image; ^ /root/JavaX-Caches/tmp_1522717824/main.java:9: error: class, interface, or enum expected *() {} ^ /root/JavaX-Caches/tmp_1522717824/main.java:13: error: class, interface, or enum expected int l() { ret main.l(desc); } ^ /root/JavaX-Caches/tmp_1522717824/main.java:18: error: class, interface, or enum expected sclass Reproducing { ^ /root/JavaX-Caches/tmp_1522717824/main.java:20: error: class, interface, or enum expected ImageSurface imageSurfaceToUpdateWithBest; ^ /root/JavaX-Caches/tmp_1522717824/main.java:21: error: class, interface, or enum expected new LinkedBlockingQueue<S> newProducts; ^ /root/JavaX-Caches/tmp_1522717824/main.java:22: error: class, interface, or enum expected int maxQueueLength = 10; ^ /root/JavaX-Caches/tmp_1522717824/main.java:23: error: class, interface, or enum expected volatile Best shortest100, best; ^ /root/JavaX-Caches/tmp_1522717824/main.java:24: error: class, interface, or enum expected int pivotLength = -1; // no length punishment at start ^ /root/JavaX-Caches/tmp_1522717824/main.java:25: error: class, interface, or enum expected int pivotStep = 1; ^ /root/JavaX-Caches/tmp_1522717824/main.java:26: error: class, interface, or enum expected int fullGrabLength; // length of full grab for reference ^ /root/JavaX-Caches/tmp_1522717824/main.java:27: error: class, interface, or enum expected O startProduction; // optional runnable that starts production ^ /root/JavaX-Caches/tmp_1522717824/main.java:28: error: class, interface, or enum expected int descPrintLength = 100; ^ /root/JavaX-Caches/tmp_1522717824/main.java:30: error: class, interface, or enum expected void push(S product) { ^ /root/JavaX-Caches/tmp_1522717824/main.java:32: error: class, interface, or enum expected while (newProducts.size() >= maxQueueLength && mayRun()) ^ /root/JavaX-Caches/tmp_1522717824/main.java:34: error: class, interface, or enum expected newProducts.add(product); ^ /root/JavaX-Caches/tmp_1522717824/main.java:35: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1522717824/main.java:40: error: class, interface, or enum expected ret pixelScore-lengthPunishment; ^ /root/JavaX-Caches/tmp_1522717824/main.java:41: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1522717824/main.java:45: error: class, interface, or enum expected if (shortest != null) ^ /root/JavaX-Caches/tmp_1522717824/main.java:47: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1522717824/main.java:51: error: class, interface, or enum expected best = null; ^ /root/JavaX-Caches/tmp_1522717824/main.java:52: error: class, interface, or enum expected fullGrabLength = l(fullGrab(bw)); ^ /root/JavaX-Caches/tmp_1522717824/main.java:53: error: class, interface, or enum expected long lastPrint = 0, lastN = 0; ^ /root/JavaX-Caches/tmp_1522717824/main.java:54: error: class, interface, or enum expected for (long ntry = 1; ; ntry++) { ^ /root/JavaX-Caches/tmp_1522717824/main.java:54: error: class, interface, or enum expected for (long ntry = 1; ; ntry++) { ^ /root/JavaX-Caches/tmp_1522717824/main.java:56: error: class, interface, or enum expected long now = now(); ^ /root/JavaX-Caches/tmp_1522717824/main.java:57: error: class, interface, or enum expected if (now >= lastPrint+1000) { ^ /root/JavaX-Caches/tmp_1522717824/main.java:59: error: class, interface, or enum expected lastPrint = now; ^ /root/JavaX-Caches/tmp_1522717824/main.java:60: error: class, interface, or enum expected lastN = ntry; ^ /root/JavaX-Caches/tmp_1522717824/main.java:61: error: class, interface, or enum expected String s = "Try " + ntry + " (" + tps + "/s)"; ^ /root/JavaX-Caches/tmp_1522717824/main.java:62: error: class, interface, or enum expected if (best == null) ^ /root/JavaX-Caches/tmp_1522717824/main.java:64: error: class, interface, or enum expected else { ^ /root/JavaX-Caches/tmp_1522717824/main.java:66: error: class, interface, or enum expected print(s + ", score: " + formatDouble(best.score, 2) + "%, l=" + l(best.desc) + ", pivotL=" + pivotLength + "/" + fullGrabLength + (shortest100 == null ? "" : ", shortest100=" + shortest100.l())); ^ /root/JavaX-Caches/tmp_1522717824/main.java:67: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1522717824/main.java:70: error: class, interface, or enum expected try { ^ /root/JavaX-Caches/tmp_1522717824/main.java:72: error: class, interface, or enum expected } catch e { ^ /root/JavaX-Caches/tmp_1522717824/main.java:74: error: class, interface, or enum expected continue; ^ /root/JavaX-Caches/tmp_1522717824/main.java:75: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1522717824/main.java:77: error: class, interface, or enum expected try { ^ /root/JavaX-Caches/tmp_1522717824/main.java:79: error: class, interface, or enum expected } catch { ^ /root/JavaX-Caches/tmp_1522717824/main.java:81: error: class, interface, or enum expected continue; ^ /root/JavaX-Caches/tmp_1522717824/main.java:82: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1522717824/main.java:85: error: class, interface, or enum expected double pixelScore = 100*(1-diff(bw, rendering)); ^ /root/JavaX-Caches/tmp_1522717824/main.java:86: error: class, interface, or enum expected double score = formula(desc, pixelScore); ^ /root/JavaX-Caches/tmp_1522717824/main.java:88: error: class, interface, or enum expected if (best == null || p != null && score > getScore(best)) { ^ /root/JavaX-Caches/tmp_1522717824/main.java:91: error: class, interface, or enum expected if (pixelScore >= 100 && (shortest100 == null || shortest100.l() > l(desc))) { ^ /root/JavaX-Caches/tmp_1522717824/main.java:93: error: class, interface, or enum expected saveTextFile(getProgramFile("shortest100.txt"), bw.getWidth() + " " + bw.getHeight() + " " + desc); ^ /root/JavaX-Caches/tmp_1522717824/main.java:94: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1522717824/main.java:96: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1522717824/main.java:100: error: class, interface, or enum expected print(shorten(best.desc, descPrintLength)); ^ /root/JavaX-Caches/tmp_1522717824/main.java:101: error: class, interface, or enum expected break; ^ /root/JavaX-Caches/tmp_1522717824/main.java:102: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1522717824/main.java:108: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1522717824/main.java:112: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1522717824/main.java:117: error: class, interface, or enum expected } catch { ^ /root/JavaX-Caches/tmp_1522717824/main.java:119: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1522717824/main.java:124: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1522717824/main.java:128: error: class, interface, or enum expected reproduceOpenEnd(); ^ /root/JavaX-Caches/tmp_1522717824/main.java:130: error: class, interface, or enum expected while (solved()) { ^ /root/JavaX-Caches/tmp_1522717824/main.java:132: error: class, interface, or enum expected print("Trying pivot length " + pivotLength); ^ /root/JavaX-Caches/tmp_1522717824/main.java:134: error: class, interface, or enum expected produce(); ^ /root/JavaX-Caches/tmp_1522717824/main.java:135: error: class, interface, or enum expected reproduceOpenEnd(); ^ /root/JavaX-Caches/tmp_1522717824/main.java:136: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1522717824/main.java:146: error: illegal escape character fail("size: \*w*/ \*h*/ \*dw*/ \*dh*/"); ^ /root/JavaX-Caches/tmp_1522717824/main.java:146: error: illegal escape character fail("size: \*w*/ \*h*/ \*dw*/ \*dh*/"); ^ /root/JavaX-Caches/tmp_1522717824/main.java:146: error: illegal escape character fail("size: \*w*/ \*h*/ \*dw*/ \*dh*/"); ^ /root/JavaX-Caches/tmp_1522717824/main.java:146: error: illegal escape character fail("size: \*w*/ \*h*/ \*dw*/ \*dh*/"); ^ /root/JavaX-Caches/tmp_1522717824/main.java:147: error: not a statement ret new BWImage(w, h, data); ^ /root/JavaX-Caches/tmp_1522717824/main.java:147: error: ';' expected ret new BWImage(w, h, data); ^ /root/JavaX-Caches/tmp_1522717824/main.java:164: error: class, interface, or enum expected static S fullGrab(BWImage img) { ^ /root/JavaX-Caches/tmp_1522717824/main.java:166: error: class, interface, or enum expected int w = img.getWidth(), h = img.getHeight(); ^ /root/JavaX-Caches/tmp_1522717824/main.java:167: error: class, interface, or enum expected d.put("dw", w); ^ /root/JavaX-Caches/tmp_1522717824/main.java:168: error: class, interface, or enum expected d.put("dh", h); ^ /root/JavaX-Caches/tmp_1522717824/main.java:169: error: class, interface, or enum expected byte[] data = new byte[w*h]; ^ /root/JavaX-Caches/tmp_1522717824/main.java:170: error: class, interface, or enum expected for (int y = 0; y < h; y++) ^ /root/JavaX-Caches/tmp_1522717824/main.java:170: error: class, interface, or enum expected for (int y = 0; y < h; y++) ^ /root/JavaX-Caches/tmp_1522717824/main.java:170: error: class, interface, or enum expected for (int y = 0; y < h; y++) ^ /root/JavaX-Caches/tmp_1522717824/main.java:171: error: class, interface, or enum expected for (int x = 0; x < w; x++) ^ /root/JavaX-Caches/tmp_1522717824/main.java:171: error: class, interface, or enum expected for (int x = 0; x < w; x++) ^ /root/JavaX-Caches/tmp_1522717824/main.java:173: error: class, interface, or enum expected d.put("data", data); ^ /root/JavaX-Caches/tmp_1522717824/main.java:174: error: class, interface, or enum expected ret structure(d); ^ /root/JavaX-Caches/tmp_1522717824/main.java:175: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1522717824/main.java:179: error: class, interface, or enum expected BWImage clip = img.clip(0, 0, width, h); ^ /root/JavaX-Caches/tmp_1522717824/main.java:180: error: class, interface, or enum expected ret structure(dynamicObject("HRepeat", "width", width, "inner", fullGrab(clip))); ^ /root/JavaX-Caches/tmp_1522717824/main.java:181: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1522717824/main.java:185: error: class, interface, or enum expected int i = tok.indexOf("f"); ^ /root/JavaX-Caches/tmp_1522717824/main.java:186: error: class, interface, or enum expected if (i < 0) null; ^ /root/JavaX-Caches/tmp_1522717824/main.java:187: error: class, interface, or enum expected float f = Float.parseFloat(unquote(tok.get(i+2))); ^ /root/JavaX-Caches/tmp_1522717824/main.java:188: error: class, interface, or enum expected f = (float) (f+random(-0.1, 0.1)); ^ /root/JavaX-Caches/tmp_1522717824/main.java:189: error: class, interface, or enum expected tok.set(i+2, quote(str(f))); ^ /root/JavaX-Caches/tmp_1522717824/main.java:190: error: class, interface, or enum expected ret join(tok); ^ /root/JavaX-Caches/tmp_1522717824/main.java:191: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1522717824/main.java:195: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1522717824/main.java:205: error: not a statement ret new BWImage(w, h, col); ^ /root/JavaX-Caches/tmp_1522717824/main.java:205: error: ';' expected ret new BWImage(w, h, col); ^ 100 errors only showing the first 100 errors, of 117 total; use -Xmaxerrs if you would like to see more