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

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

/root/JavaX-Caches/tmp_1751020995/main.java:1: error: class, interface, or enum expected persistable sclass HexagonalIntegralImage { ^ /root/JavaX-Caches/tmp_1751020995/main.java:2: error: class, interface, or enum expected final int w, h; ^ /root/JavaX-Caches/tmp_1751020995/main.java:5: error: class, interface, or enum expected final int[2][] data; ^ /root/JavaX-Caches/tmp_1751020995/main.java:9: error: class, interface, or enum expected final int[][] columnSums = new int[3][]; ^ /root/JavaX-Caches/tmp_1751020995/main.java:11: error: class, interface, or enum expected *(BufferedImage img) { this(RGBImage img); } ^ /root/JavaX-Caches/tmp_1751020995/main.java:11: error: class, interface, or enum expected *(BufferedImage img) { this(RGBImage img); } ^ /root/JavaX-Caches/tmp_1751020995/main.java:15: error: class, interface, or enum expected h = img.h(); ^ /root/JavaX-Caches/tmp_1751020995/main.java:16: error: class, interface, or enum expected data1 = new int[w*h*3]; ^ /root/JavaX-Caches/tmp_1751020995/main.java:17: error: class, interface, or enum expected int i = 0; ^ /root/JavaX-Caches/tmp_1751020995/main.java:18: error: class, interface, or enum expected for y to h: { ^ /root/JavaX-Caches/tmp_1751020995/main.java:20: error: class, interface, or enum expected int shift = iround(y*sqrtAThird()); ^ /root/JavaX-Caches/tmp_1751020995/main.java:21: error: class, interface, or enum expected for x to w: { ^ /root/JavaX-Caches/tmp_1751020995/main.java:24: error: class, interface, or enum expected sumR += (rgb >> 16) & 0xFF; ^ /root/JavaX-Caches/tmp_1751020995/main.java:25: error: class, interface, or enum expected sumG += (rgb >> 8) & 0xFF; ^ /root/JavaX-Caches/tmp_1751020995/main.java:26: error: class, interface, or enum expected sumB += rgb & 0xFF; ^ /root/JavaX-Caches/tmp_1751020995/main.java:29: error: class, interface, or enum expected data[0][i] = sumR; ^ /root/JavaX-Caches/tmp_1751020995/main.java:30: error: class, interface, or enum expected data[0][i+1] = sumG; ^ /root/JavaX-Caches/tmp_1751020995/main.java:31: error: class, interface, or enum expected data[0][i+2] = sumB; ^ /root/JavaX-Caches/tmp_1751020995/main.java:33: error: class, interface, or enum expected if (y != 0) { ^ /root/JavaX-Caches/tmp_1751020995/main.java:36: error: class, interface, or enum expected data[0][i+1] += data[0][i-(w+shift)*3+1]; ^ /root/JavaX-Caches/tmp_1751020995/main.java:37: error: class, interface, or enum expected data[0][i+2] += data[0][i-(w+shift)*3+2]; ^ /root/JavaX-Caches/tmp_1751020995/main.java:38: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1751020995/main.java:42: error: class, interface, or enum expected data[1][i+1] += data[1][i-(w-shift)*3+1]; ^ /root/JavaX-Caches/tmp_1751020995/main.java:43: error: class, interface, or enum expected data[1][i+2] += data[1][i-(w-shift)*3+2]; ^ /root/JavaX-Caches/tmp_1751020995/main.java:44: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1751020995/main.java:48: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1751020995/main.java:52: error: class, interface, or enum expected for y to h: ^ /root/JavaX-Caches/tmp_1751020995/main.java:59: error: class, interface, or enum expected int i = 0, j = 0, sumR = 0, sumG = 0, sumB = 0; ^ /root/JavaX-Caches/tmp_1751020995/main.java:60: error: class, interface, or enum expected for x to w: { ^ /root/JavaX-Caches/tmp_1751020995/main.java:62: error: class, interface, or enum expected data[i++] = (sumR += (rgb >> 16) & 0xFF); ^ /root/JavaX-Caches/tmp_1751020995/main.java:63: error: class, interface, or enum expected data[i++] = (sumG += (rgb >> 8) & 0xFF); ^ /root/JavaX-Caches/tmp_1751020995/main.java:64: error: class, interface, or enum expected data[i++] = (sumB += rgb & 0xFF); ^ /root/JavaX-Caches/tmp_1751020995/main.java:65: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1751020995/main.java:66: error: class, interface, or enum expected for (int y = 1; y < h; y++) { ^ /root/JavaX-Caches/tmp_1751020995/main.java:66: error: class, interface, or enum expected for (int y = 1; y < h; y++) { ^ /root/JavaX-Caches/tmp_1751020995/main.java:68: error: class, interface, or enum expected for x to w: { ^ /root/JavaX-Caches/tmp_1751020995/main.java:70: error: class, interface, or enum expected sumR += (rgb >> 16) & 0xFF; ^ /root/JavaX-Caches/tmp_1751020995/main.java:71: error: class, interface, or enum expected sumG += (rgb >> 8) & 0xFF; ^ /root/JavaX-Caches/tmp_1751020995/main.java:72: error: class, interface, or enum expected sumB += rgb & 0xFF; ^ /root/JavaX-Caches/tmp_1751020995/main.java:73: error: class, interface, or enum expected data[i] = sumR + data[i-w*3]; ^ /root/JavaX-Caches/tmp_1751020995/main.java:74: error: class, interface, or enum expected data[i+1] = sumG + data[i-w*3+1]; ^ /root/JavaX-Caches/tmp_1751020995/main.java:75: error: class, interface, or enum expected data[i+2] = sumB + data[i-w*3+2]; ^ /root/JavaX-Caches/tmp_1751020995/main.java:76: error: class, interface, or enum expected i += 3; ^ /root/JavaX-Caches/tmp_1751020995/main.java:77: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1751020995/main.java:85: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1751020995/main.java:90: error: class, interface, or enum expected int i = (y*w+x)*3; ^ /root/JavaX-Caches/tmp_1751020995/main.java:91: error: class, interface, or enum expected ret data[i]+data[i+1]+data[i+2]; ^ /root/JavaX-Caches/tmp_1751020995/main.java:92: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1751020995/main.java:96: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1751020995/main.java:100: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1751020995/main.java:102: error: class, interface, or enum expected public int getWidth() { ret w; } ^ /root/JavaX-Caches/tmp_1751020995/main.java:102: error: class, interface, or enum expected public int getWidth() { ret w; } ^ /root/JavaX-Caches/tmp_1751020995/main.java:103: error: class, interface, or enum expected public int getHeight() { ret h; } ^ /root/JavaX-Caches/tmp_1751020995/main.java:103: error: class, interface, or enum expected public int getHeight() { ret h; } ^ /root/JavaX-Caches/tmp_1751020995/main.java:104: error: class, interface, or enum expected int w() { ret w; } ^ /root/JavaX-Caches/tmp_1751020995/main.java:105: error: class, interface, or enum expected int h() { ret h; } ^ 56 errors