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

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

/root/JavaX-Caches/tmp_656601009/main.java:1: error: class, interface, or enum expected sclass Test_CompressToInterpolatedDoubleArray { ^ /root/JavaX-Caches/tmp_656601009/main.java:3: error: class, interface, or enum expected settable int minX =-10, maxX = 10; ^ /root/JavaX-Caches/tmp_656601009/main.java:4: error: class, interface, or enum expected settable int maxRunlength = 10; ^ /root/JavaX-Caches/tmp_656601009/main.java:5: error: class, interface, or enum expected settable int nTests = 1_000; ^ /root/JavaX-Caches/tmp_656601009/main.java:8: error: class, interface, or enum expected new AverageAndMinMax pixelErrors; ^ /root/JavaX-Caches/tmp_656601009/main.java:10: error: class, interface, or enum expected int pixelErrors() { ret iround(pixelErrors.sum()); } ^ /root/JavaX-Caches/tmp_656601009/main.java:10: error: class, interface, or enum expected int pixelErrors() { ret iround(pixelErrors.sum()); } ^ /root/JavaX-Caches/tmp_656601009/main.java:14: error: class, interface, or enum expected repeat nTests { multiSlopeTest(); } ^ /root/JavaX-Caches/tmp_656601009/main.java:14: error: class, interface, or enum expected repeat nTests { multiSlopeTest(); } ^ /root/JavaX-Caches/tmp_656601009/main.java:16: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_656601009/main.java:19: error: class, interface, or enum expected for (double slope = -1; slope <= 1; slope += 1/8.0) ^ /root/JavaX-Caches/tmp_656601009/main.java:19: error: class, interface, or enum expected for (double slope = -1; slope <= 1; slope += 1/8.0) ^ /root/JavaX-Caches/tmp_656601009/main.java:21: error: class, interface, or enum expected printResults(); ^ /root/JavaX-Caches/tmp_656601009/main.java:22: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_656601009/main.java:26: error: class, interface, or enum expected printVars(+pixelErrors); ^ /root/JavaX-Caches/tmp_656601009/main.java:27: error: class, interface, or enum expected if (pixelErrors.average() == 0) ^ /root/JavaX-Caches/tmp_656601009/main.java:29: error: class, interface, or enum expected else if (pixelErrors.average() <= 1) ^ /root/JavaX-Caches/tmp_656601009/main.java:31: error: class, interface, or enum expected else ^ /root/JavaX-Caches/tmp_656601009/main.java:33: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_656601009/main.java:37: error: class, interface, or enum expected var data = intArrayFromFunction(n, i -> iround(slope*i)); ^ /root/JavaX-Caches/tmp_656601009/main.java:38: error: class, interface, or enum expected testCompression(data, 2); ^ /root/JavaX-Caches/tmp_656601009/main.java:39: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_656601009/main.java:43: error: class, interface, or enum expected printStruct(+data); ^ /root/JavaX-Caches/tmp_656601009/main.java:44: error: class, interface, or enum expected var compressed = CompressToInterpolatedDoubleArray(data)!; ^ /root/JavaX-Caches/tmp_656601009/main.java:45: error: class, interface, or enum expected printStruct(+compressed); ^ /root/JavaX-Caches/tmp_656601009/main.java:46: error: class, interface, or enum expected var reconstructed = compressed!; ^ /root/JavaX-Caches/tmp_656601009/main.java:47: error: class, interface, or enum expected var reconstructed2 = iroundDoubleArray(reconstructed); ^ /root/JavaX-Caches/tmp_656601009/main.java:48: error: class, interface, or enum expected printStruct(+reconstructed); ^ /root/JavaX-Caches/tmp_656601009/main.java:51: error: class, interface, or enum expected assertEquals(l(data), l(reconstructed2)); ^ /root/JavaX-Caches/tmp_656601009/main.java:52: error: class, interface, or enum expected for i over data: { ^ /root/JavaX-Caches/tmp_656601009/main.java:54: error: class, interface, or enum expected pixelErrors.add(diff); ^ /root/JavaX-Caches/tmp_656601009/main.java:55: error: class, interface, or enum expected if (diff != 0) { ^ /root/JavaX-Caches/tmp_656601009/main.java:57: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_656601009/main.java:62: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_656601009/main.java:64: error: class, interface, or enum expected int randomX() { ret random_incl(minX, maxX); } ^ /root/JavaX-Caches/tmp_656601009/main.java:68: error: class, interface, or enum expected new IntBuffer values; ^ /root/JavaX-Caches/tmp_656601009/main.java:69: error: class, interface, or enum expected new IntBuffer pillars; ^ /root/JavaX-Caches/tmp_656601009/main.java:72: error: class, interface, or enum expected pillars.add(0); ^ /root/JavaX-Caches/tmp_656601009/main.java:73: error: class, interface, or enum expected values.add(randomX()); ^ /root/JavaX-Caches/tmp_656601009/main.java:76: error: class, interface, or enum expected for (int iPillar = 1; iPillar < nPillars; iPillar++) { ^ /root/JavaX-Caches/tmp_656601009/main.java:76: error: class, interface, or enum expected for (int iPillar = 1; iPillar < nPillars; iPillar++) { ^ /root/JavaX-Caches/tmp_656601009/main.java:76: error: class, interface, or enum expected for (int iPillar = 1; iPillar < nPillars; iPillar++) { ^ /root/JavaX-Caches/tmp_656601009/main.java:78: error: class, interface, or enum expected int runlength = random_incl(1, maxRunlength); ^ /root/JavaX-Caches/tmp_656601009/main.java:79: error: class, interface, or enum expected if (runlength > 1) { ^ /root/JavaX-Caches/tmp_656601009/main.java:81: error: class, interface, or enum expected double slope = (value-lastValue)/(double) runlength; ^ /root/JavaX-Caches/tmp_656601009/main.java:82: error: class, interface, or enum expected double x = lastValue; ^ /root/JavaX-Caches/tmp_656601009/main.java:83: error: class, interface, or enum expected for (int i = 1; i < runlength; i++) ^ /root/JavaX-Caches/tmp_656601009/main.java:83: error: class, interface, or enum expected for (int i = 1; i < runlength; i++) ^ /root/JavaX-Caches/tmp_656601009/main.java:83: error: class, interface, or enum expected for (int i = 1; i < runlength; i++) ^ /root/JavaX-Caches/tmp_656601009/main.java:85: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_656601009/main.java:87: error: class, interface, or enum expected values.add(value); ^ /root/JavaX-Caches/tmp_656601009/main.java:88: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_656601009/main.java:90: error: class, interface, or enum expected int[] data = values.toArrayNonNull(); ^ /root/JavaX-Caches/tmp_656601009/main.java:91: error: class, interface, or enum expected testCompression(data, nPillars); ^ /root/JavaX-Caches/tmp_656601009/main.java:92: error: class, interface, or enum expected } ^ 55 errors