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

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

/root/JavaX-Caches/tmp_1283220828/main.java:10: error: class, interface, or enum expected int w, h, w2, h2; ^ /root/JavaX-Caches/tmp_1283220828/main.java:11: error: class, interface, or enum expected int[] horizontallyScaledPixels, finalPixels; ^ /root/JavaX-Caches/tmp_1283220828/main.java:13: error: class, interface, or enum expected void scaleHorizontally(BufferedImage img) { ^ /root/JavaX-Caches/tmp_1283220828/main.java:15: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1283220828/main.java:19: error: class, interface, or enum expected int h = this.h = gp.h; ^ /root/JavaX-Caches/tmp_1283220828/main.java:20: error: class, interface, or enum expected int w2 = this.w2 = w/scaleX, h2 = this.h2 = h/scaleY; ^ /root/JavaX-Caches/tmp_1283220828/main.java:22: error: class, interface, or enum expected int[] newPixels = horizontallyScaledPixels = new int[w2*h]; ^ /root/JavaX-Caches/tmp_1283220828/main.java:24: error: class, interface, or enum expected int iRow = gp.offset, iOut = 0; ^ /root/JavaX-Caches/tmp_1283220828/main.java:25: error: class, interface, or enum expected int[] pixels = gp.data; ^ /root/JavaX-Caches/tmp_1283220828/main.java:27: error: class, interface, or enum expected for (int y = 0; y < h; y++) { ^ /root/JavaX-Caches/tmp_1283220828/main.java:27: error: class, interface, or enum expected for (int y = 0; y < h; y++) { ^ /root/JavaX-Caches/tmp_1283220828/main.java:27: error: class, interface, or enum expected for (int y = 0; y < h; y++) { ^ /root/JavaX-Caches/tmp_1283220828/main.java:30: error: class, interface, or enum expected for x to w2: { ^ /root/JavaX-Caches/tmp_1283220828/main.java:33: error: class, interface, or enum expected for subX to scaleX: { ^ /root/JavaX-Caches/tmp_1283220828/main.java:35: error: class, interface, or enum expected r += (rgb >> 16) & 0xFF; ^ /root/JavaX-Caches/tmp_1283220828/main.java:36: error: class, interface, or enum expected g += (rgb >> 8) & 0xFF; ^ /root/JavaX-Caches/tmp_1283220828/main.java:37: error: class, interface, or enum expected b += rgb & 0xFF; ^ /root/JavaX-Caches/tmp_1283220828/main.java:38: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1283220828/main.java:41: error: class, interface, or enum expected newPixels[iOut++] = rgbIntFullAlpha(r/scaleX, g/scaleX, b/scaleX); ^ /root/JavaX-Caches/tmp_1283220828/main.java:42: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1283220828/main.java:45: error: class, interface, or enum expected } // for y ^ /root/JavaX-Caches/tmp_1283220828/main.java:50: error: class, interface, or enum expected int[] newPixels = finalPixels = new int[w2*h2]; ^ /root/JavaX-Caches/tmp_1283220828/main.java:52: error: class, interface, or enum expected int iRow = 0, iOut = 0; ^ /root/JavaX-Caches/tmp_1283220828/main.java:54: error: class, interface, or enum expected for (int y = 0; y < h2; y++) { ^ /root/JavaX-Caches/tmp_1283220828/main.java:54: error: class, interface, or enum expected for (int y = 0; y < h2; y++) { ^ /root/JavaX-Caches/tmp_1283220828/main.java:54: error: class, interface, or enum expected for (int y = 0; y < h2; y++) { ^ /root/JavaX-Caches/tmp_1283220828/main.java:57: error: class, interface, or enum expected for x to w2: { ^ /root/JavaX-Caches/tmp_1283220828/main.java:59: error: class, interface, or enum expected int iIn2 = iIn; ^ /root/JavaX-Caches/tmp_1283220828/main.java:61: error: class, interface, or enum expected for subY to scaleY: { ^ /root/JavaX-Caches/tmp_1283220828/main.java:63: error: class, interface, or enum expected iIn2 += w2; ^ /root/JavaX-Caches/tmp_1283220828/main.java:64: error: class, interface, or enum expected r += (rgb >> 16) & 0xFF; ^ /root/JavaX-Caches/tmp_1283220828/main.java:65: error: class, interface, or enum expected g += (rgb >> 8) & 0xFF; ^ /root/JavaX-Caches/tmp_1283220828/main.java:66: error: class, interface, or enum expected b += rgb & 0xFF; ^ /root/JavaX-Caches/tmp_1283220828/main.java:67: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1283220828/main.java:70: error: class, interface, or enum expected newPixels[iOut++] = rgbIntFullAlpha(r/scaleX, g/scaleX, b/scaleX); ^ /root/JavaX-Caches/tmp_1283220828/main.java:71: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1283220828/main.java:74: error: class, interface, or enum expected } // for y ^ /root/JavaX-Caches/tmp_1283220828/main.java:79: error: class, interface, or enum expected scaleVertically(); ^ /root/JavaX-Caches/tmp_1283220828/main.java:80: error: class, interface, or enum expected ret get(); ^ /root/JavaX-Caches/tmp_1283220828/main.java:81: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1283220828/main.java:85: error: class, interface, or enum expected } ^ 41 errors