Wrote /root/JavaX-Caches/tmp_1464104248/main.java - 3220 bytes (written=3220, should be 3220)
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_1904307248 /root/JavaX-Caches/tmp_1464104248/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_1464104248/main.java:1: error: class, interface, or enum expected
static RGB probeRandomPixel(RGBImage image) {
^
/root/JavaX-Caches/tmp_1464104248/main.java:3: error: class, interface, or enum expected
int y = (int) (random()*(image.getHeight()-1));
^
/root/JavaX-Caches/tmp_1464104248/main.java:4: error: class, interface, or enum expected
return image.getPixel(x, y);
^
/root/JavaX-Caches/tmp_1464104248/main.java:5: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1464104248/main.java:9: error: class, interface, or enum expected
int y = (int) (random()*(image.getHeight()-1));
^
/root/JavaX-Caches/tmp_1464104248/main.java:10: error: class, interface, or enum expected
return image.getPixel(x, y);
^
/root/JavaX-Caches/tmp_1464104248/main.java:11: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1464104248/main.java:15: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1464104248/main.java:19: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1464104248/main.java:23: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1464104248/main.java:25: error: class, interface, or enum expected
public static RGBImage resize(RGBImage image, int w, int h) {
^
/root/JavaX-Caches/tmp_1464104248/main.java:28: error: class, interface, or enum expected
int[] pixels = new int[w*h];
^
/root/JavaX-Caches/tmp_1464104248/main.java:29: error: class, interface, or enum expected
for (int y = 0; y < h; y++)
^
/root/JavaX-Caches/tmp_1464104248/main.java:29: error: class, interface, or enum expected
for (int y = 0; y < h; y++)
^
/root/JavaX-Caches/tmp_1464104248/main.java:29: error: class, interface, or enum expected
for (int y = 0; y < h; y++)
^
/root/JavaX-Caches/tmp_1464104248/main.java:30: error: class, interface, or enum expected
for (int x = 0; x < w; x++)
^
/root/JavaX-Caches/tmp_1464104248/main.java:30: error: class, interface, or enum expected
for (int x = 0; x < w; x++)
^
/root/JavaX-Caches/tmp_1464104248/main.java:32: error: class, interface, or enum expected
return new RGBImage(w, h, pixels);
^
/root/JavaX-Caches/tmp_1464104248/main.java:33: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1464104248/main.java:36: error: class, interface, or enum expected
static double random() {
^
/root/JavaX-Caches/tmp_1464104248/main.java:38: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1464104248/main.java:42: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1464104248/main.java:46: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1464104248/main.java:50: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1464104248/main.java:54: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1464104248/main.java:58: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1464104248/main.java:60: error: class, interface, or enum expected
public static double pixelDiff(RGB a, RGB b) {
^
/root/JavaX-Caches/tmp_1464104248/main.java:62: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1464104248/main.java:64: error: class, interface, or enum expected
public static double diff(RGBImage image, RGBImage image2) {
^
/root/JavaX-Caches/tmp_1464104248/main.java:66: error: class, interface, or enum expected
double sum = 0;
^
/root/JavaX-Caches/tmp_1464104248/main.java:67: error: class, interface, or enum expected
for (int y = 0; y < h; y++)
^
/root/JavaX-Caches/tmp_1464104248/main.java:67: error: class, interface, or enum expected
for (int y = 0; y < h; y++)
^
/root/JavaX-Caches/tmp_1464104248/main.java:67: error: class, interface, or enum expected
for (int y = 0; y < h; y++)
^
/root/JavaX-Caches/tmp_1464104248/main.java:68: error: class, interface, or enum expected
for (int x = 0; x < w; x++)
^
/root/JavaX-Caches/tmp_1464104248/main.java:68: error: class, interface, or enum expected
for (int x = 0; x < w; x++)
^
/root/JavaX-Caches/tmp_1464104248/main.java:70: error: class, interface, or enum expected
return sum/(w*h);
^
/root/JavaX-Caches/tmp_1464104248/main.java:71: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1464104248/main.java:75: error: class, interface, or enum expected
double sum = 0;
^
/root/JavaX-Caches/tmp_1464104248/main.java:76: error: class, interface, or enum expected
for (int y = 0; y < h; y++)
^
/root/JavaX-Caches/tmp_1464104248/main.java:76: error: class, interface, or enum expected
for (int y = 0; y < h; y++)
^
/root/JavaX-Caches/tmp_1464104248/main.java:76: error: class, interface, or enum expected
for (int y = 0; y < h; y++)
^
/root/JavaX-Caches/tmp_1464104248/main.java:77: error: class, interface, or enum expected
for (int x = 0; x < w; x++)
^
/root/JavaX-Caches/tmp_1464104248/main.java:77: error: class, interface, or enum expected
for (int x = 0; x < w; x++)
^
/root/JavaX-Caches/tmp_1464104248/main.java:79: error: class, interface, or enum expected
return sum/(w*h);
^
/root/JavaX-Caches/tmp_1464104248/main.java:80: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1464104248/main.java:82: error: class, interface, or enum expected
public static void copy(RGBImage src, int srcX, int srcY, RGBImage dst, int dstX, int dstY, int w, int h) {
^
/root/JavaX-Caches/tmp_1464104248/main.java:83: error: class, interface, or enum expected
for (int y = 0; y < h; y++)
^
/root/JavaX-Caches/tmp_1464104248/main.java:83: error: class, interface, or enum expected
for (int y = 0; y < h; y++)
^
/root/JavaX-Caches/tmp_1464104248/main.java:84: error: class, interface, or enum expected
for (int x = 0; x < w; x++)
^
/root/JavaX-Caches/tmp_1464104248/main.java:84: error: class, interface, or enum expected
for (int x = 0; x < w; x++)
^
/root/JavaX-Caches/tmp_1464104248/main.java:86: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1464104248/main.java:88: error: class, interface, or enum expected
public static void copy(BWImage src, int srcX, int srcY, BWImage dst, int dstX, int dstY, int w, int h) {
^
/root/JavaX-Caches/tmp_1464104248/main.java:90: error: class, interface, or enum expected
for (int y = 0; y < h; y++)
^
/root/JavaX-Caches/tmp_1464104248/main.java:90: error: class, interface, or enum expected
for (int y = 0; y < h; y++)
^
/root/JavaX-Caches/tmp_1464104248/main.java:90: error: class, interface, or enum expected
for (int y = 0; y < h; y++)
^
/root/JavaX-Caches/tmp_1464104248/main.java:91: error: class, interface, or enum expected
for (int x = 0; x < w; x++)
^
/root/JavaX-Caches/tmp_1464104248/main.java:91: error: class, interface, or enum expected
for (int x = 0; x < w; x++)
^
/root/JavaX-Caches/tmp_1464104248/main.java:93: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1464104248/main.java:97: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1464104248/main.java:101: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1464104248/main.java:105: error: class, interface, or enum expected
if (s == 0)
^
/root/JavaX-Caches/tmp_1464104248/main.java:107: error: class, interface, or enum expected
else if (s == 1)
^
/root/JavaX-Caches/tmp_1464104248/main.java:109: error: class, interface, or enum expected
else
^
/root/JavaX-Caches/tmp_1464104248/main.java:111: error: class, interface, or enum expected
}
^
64 errors