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

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

/root/JavaX-Caches/tmp_157618549/main.java:2: error: class, interface, or enum expected sclass BWIntegralImage > Meta implements IBWIntegralImage, IIntegralImage { ^ /root/JavaX-Caches/tmp_157618549/main.java:4: error: class, interface, or enum expected int[] data; // 1 entry per pixel ^ /root/JavaX-Caches/tmp_157618549/main.java:5: error: class, interface, or enum expected ifdef BWIntegralImage_CountAccesses ^ /root/JavaX-Caches/tmp_157618549/main.java:7: error: class, interface, or enum expected endifdef ^ /root/JavaX-Caches/tmp_157618549/main.java:12: error: class, interface, or enum expected *(File f) { this(loadImage2(f)); } ^ /root/JavaX-Caches/tmp_157618549/main.java:13: error: class, interface, or enum expected *(MakesBufferedImage img) { this(toBufferedImage(img)); } ^ /root/JavaX-Caches/tmp_157618549/main.java:14: error: class, interface, or enum expected *(BufferedImage image) { grab(image); } ^ /root/JavaX-Caches/tmp_157618549/main.java:15: error: class, interface, or enum expected *(BufferedImage image, Decolorizer decolorizer) { grab(image, decolorizer); } ^ /root/JavaX-Caches/tmp_157618549/main.java:16: error: class, interface, or enum expected *(GrabbableIntPixels gp) { grab(gp); } ^ /root/JavaX-Caches/tmp_157618549/main.java:17: error: class, interface, or enum expected *(GrabbableGrayPixels gp) { grab(gp); } ^ /root/JavaX-Caches/tmp_157618549/main.java:22: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_157618549/main.java:29: error: class, interface, or enum expected else // rgb image ^ /root/JavaX-Caches/tmp_157618549/main.java:31: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_157618549/main.java:37: error: class, interface, or enum expected alloc(gp.w, gp.h); ^ /root/JavaX-Caches/tmp_157618549/main.java:38: error: class, interface, or enum expected int w = this.w, h = this.h; ^ /root/JavaX-Caches/tmp_157618549/main.java:39: error: class, interface, or enum expected ifdef BWIntegralImage_debug ^ /root/JavaX-Caches/tmp_157618549/main.java:41: error: class, interface, or enum expected endifdef ^ /root/JavaX-Caches/tmp_157618549/main.java:43: error: class, interface, or enum expected int[] image = gp.data; ^ /root/JavaX-Caches/tmp_157618549/main.java:44: error: class, interface, or enum expected for x to w: { ^ /root/JavaX-Caches/tmp_157618549/main.java:46: error: class, interface, or enum expected int brightness = decolorizer.toGrayScale(packed); ^ /root/JavaX-Caches/tmp_157618549/main.java:47: error: class, interface, or enum expected data[x] = (sum += brightness); ^ /root/JavaX-Caches/tmp_157618549/main.java:48: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_157618549/main.java:51: error: class, interface, or enum expected int scanlineExtra = gp.scanlineStride-w; ^ /root/JavaX-Caches/tmp_157618549/main.java:52: error: class, interface, or enum expected int iImage = offset+gp.scanlineStride, i = w; ^ /root/JavaX-Caches/tmp_157618549/main.java:53: error: class, interface, or enum expected for (int y = 1; y < h; y++) { ^ /root/JavaX-Caches/tmp_157618549/main.java:53: error: class, interface, or enum expected for (int y = 1; y < h; y++) { ^ /root/JavaX-Caches/tmp_157618549/main.java:53: error: class, interface, or enum expected for (int y = 1; y < h; y++) { ^ /root/JavaX-Caches/tmp_157618549/main.java:55: error: class, interface, or enum expected for x to w: { ^ /root/JavaX-Caches/tmp_157618549/main.java:57: error: class, interface, or enum expected int brightness = decolorizer.toGrayScale(packed); ^ /root/JavaX-Caches/tmp_157618549/main.java:58: error: class, interface, or enum expected sum += brightness; ^ /root/JavaX-Caches/tmp_157618549/main.java:59: error: class, interface, or enum expected data[i] = sum + data[i-w]; ^ /root/JavaX-Caches/tmp_157618549/main.java:60: error: class, interface, or enum expected iImage++; i++; ^ /root/JavaX-Caches/tmp_157618549/main.java:60: error: class, interface, or enum expected iImage++; i++; ^ /root/JavaX-Caches/tmp_157618549/main.java:61: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_157618549/main.java:64: error: class, interface, or enum expected ping?!; ^ /root/JavaX-Caches/tmp_157618549/main.java:65: error: class, interface, or enum expected } // for y ^ /root/JavaX-Caches/tmp_157618549/main.java:70: error: class, interface, or enum expected int w = this.w, h = this.h; ^ /root/JavaX-Caches/tmp_157618549/main.java:71: error: class, interface, or enum expected ifdef BWIntegralImage_debug ^ /root/JavaX-Caches/tmp_157618549/main.java:73: error: class, interface, or enum expected endifdef ^ /root/JavaX-Caches/tmp_157618549/main.java:75: error: class, interface, or enum expected int[] image = gp.data; ^ /root/JavaX-Caches/tmp_157618549/main.java:76: error: class, interface, or enum expected for x to w: { ^ /root/JavaX-Caches/tmp_157618549/main.java:78: error: class, interface, or enum expected int brightness = packedToBrightness(packed); ^ /root/JavaX-Caches/tmp_157618549/main.java:79: error: class, interface, or enum expected data[x] = (sum += brightness); ^ /root/JavaX-Caches/tmp_157618549/main.java:80: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_157618549/main.java:83: error: class, interface, or enum expected int scanlineExtra = gp.scanlineStride-w; ^ /root/JavaX-Caches/tmp_157618549/main.java:84: error: class, interface, or enum expected int iImage = offset+gp.scanlineStride, i = w; ^ /root/JavaX-Caches/tmp_157618549/main.java:85: error: class, interface, or enum expected for (int y = 1; y < h; y++) { ^ /root/JavaX-Caches/tmp_157618549/main.java:85: error: class, interface, or enum expected for (int y = 1; y < h; y++) { ^ /root/JavaX-Caches/tmp_157618549/main.java:85: error: class, interface, or enum expected for (int y = 1; y < h; y++) { ^ /root/JavaX-Caches/tmp_157618549/main.java:87: error: class, interface, or enum expected for x to w: { ^ /root/JavaX-Caches/tmp_157618549/main.java:89: error: class, interface, or enum expected int brightness = packedToBrightness(packed); ^ /root/JavaX-Caches/tmp_157618549/main.java:90: error: class, interface, or enum expected sum += brightness; ^ /root/JavaX-Caches/tmp_157618549/main.java:91: error: class, interface, or enum expected data[i] = sum + data[i-w]; ^ /root/JavaX-Caches/tmp_157618549/main.java:92: error: class, interface, or enum expected iImage++; i++; ^ /root/JavaX-Caches/tmp_157618549/main.java:92: error: class, interface, or enum expected iImage++; i++; ^ /root/JavaX-Caches/tmp_157618549/main.java:93: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_157618549/main.java:96: error: class, interface, or enum expected ping?!; ^ /root/JavaX-Caches/tmp_157618549/main.java:97: error: class, interface, or enum expected } // for y ^ /root/JavaX-Caches/tmp_157618549/main.java:102: error: class, interface, or enum expected ifdef BWIntegralImage_debug ^ /root/JavaX-Caches/tmp_157618549/main.java:104: error: class, interface, or enum expected endifdef ^ /root/JavaX-Caches/tmp_157618549/main.java:106: error: class, interface, or enum expected byte[] image = gp.data; ^ /root/JavaX-Caches/tmp_157618549/main.java:107: error: class, interface, or enum expected for x to w: { ^ /root/JavaX-Caches/tmp_157618549/main.java:109: error: class, interface, or enum expected data[x] = (sum += brightness); ^ /root/JavaX-Caches/tmp_157618549/main.java:110: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_157618549/main.java:113: error: class, interface, or enum expected int scanlineExtra = gp.scanlineStride-w; ^ /root/JavaX-Caches/tmp_157618549/main.java:114: error: class, interface, or enum expected int iImage = offset+gp.scanlineStride, i = w; ^ /root/JavaX-Caches/tmp_157618549/main.java:115: error: class, interface, or enum expected for (int y = 1; y < h; y++) { ^ /root/JavaX-Caches/tmp_157618549/main.java:115: error: class, interface, or enum expected for (int y = 1; y < h; y++) { ^ /root/JavaX-Caches/tmp_157618549/main.java:115: error: class, interface, or enum expected for (int y = 1; y < h; y++) { ^ /root/JavaX-Caches/tmp_157618549/main.java:117: error: class, interface, or enum expected for x to w: { ^ /root/JavaX-Caches/tmp_157618549/main.java:119: error: class, interface, or enum expected sum += brightness; ^ /root/JavaX-Caches/tmp_157618549/main.java:120: error: class, interface, or enum expected data[i] = sum + data[i-w]; ^ /root/JavaX-Caches/tmp_157618549/main.java:121: error: class, interface, or enum expected iImage++; i++; ^ /root/JavaX-Caches/tmp_157618549/main.java:121: error: class, interface, or enum expected iImage++; i++; ^ /root/JavaX-Caches/tmp_157618549/main.java:122: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_157618549/main.java:125: error: class, interface, or enum expected ping?!; ^ /root/JavaX-Caches/tmp_157618549/main.java:126: error: class, interface, or enum expected } // for y ^ /root/JavaX-Caches/tmp_157618549/main.java:131: error: class, interface, or enum expected this.h = h; ^ /root/JavaX-Caches/tmp_157618549/main.java:132: error: class, interface, or enum expected if (w*h > 8*1024*1024) ^ /root/JavaX-Caches/tmp_157618549/main.java:134: error: class, interface, or enum expected data = new int[w*h]; ^ /root/JavaX-Caches/tmp_157618549/main.java:135: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_157618549/main.java:141: error: class, interface, or enum expected endifdef ^ /root/JavaX-Caches/tmp_157618549/main.java:144: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_157618549/main.java:147: error: class, interface, or enum expected public double getIIValue(double x, double y) { ^ /root/JavaX-Caches/tmp_157618549/main.java:149: error: class, interface, or enum expected double val = getIIValue(xFloor, yFloor); ^ /root/JavaX-Caches/tmp_157618549/main.java:152: error: class, interface, or enum expected if (xFloor == x && yFloor == y) ^ /root/JavaX-Caches/tmp_157618549/main.java:156: error: class, interface, or enum expected double val2 = getIIValue(xFloor+1, yFloor); ^ /root/JavaX-Caches/tmp_157618549/main.java:157: error: class, interface, or enum expected double val3 = getIIValue(xFloor , yFloor+1); ^ /root/JavaX-Caches/tmp_157618549/main.java:158: error: class, interface, or enum expected double val4 = getIIValue(xFloor+1, yFloor+1); ^ /root/JavaX-Caches/tmp_157618549/main.java:160: error: class, interface, or enum expected ret blend2D(val, val2, val3, val4, x-xFloor, y-yFloor); ^ /root/JavaX-Caches/tmp_157618549/main.java:161: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_157618549/main.java:163: error: class, interface, or enum expected public int getIIValue(int x, int y) { ret get(x, y); } ^ /root/JavaX-Caches/tmp_157618549/main.java:163: error: class, interface, or enum expected public int getIIValue(int x, int y) { ret get(x, y); } ^ /root/JavaX-Caches/tmp_157618549/main.java:164: error: class, interface, or enum expected public double getIntegralValue(int x, int y, int channel) { ^ /root/JavaX-Caches/tmp_157618549/main.java:166: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_157618549/main.java:168: error: class, interface, or enum expected public double getPixelAverage(int x1, int y1, int x2, int y2) { ^ /root/JavaX-Caches/tmp_157618549/main.java:170: error: class, interface, or enum expected ret doubleRatio(bwIntegralImage_sumRect(this, x1, y1, x2, y2), area); ^ /root/JavaX-Caches/tmp_157618549/main.java:171: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_157618549/main.java:173: error: class, interface, or enum expected public int getWidth() { ret w; } ^ /root/JavaX-Caches/tmp_157618549/main.java:173: error: class, interface, or enum expected public int getWidth() { ret w; } ^ 100 errors only showing the first 100 errors, of 115 total; use -Xmaxerrs if you would like to see more