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

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

/root/JavaX-Caches/tmp_199012515/main.java:1: error: class, interface, or enum expected sclass CompressToInterpolatedDoubleArray { ^ /root/JavaX-Caches/tmp_199012515/main.java:6: error: class, interface, or enum expected InterpolatedDoubleArray result; ^ /root/JavaX-Caches/tmp_199012515/main.java:9: error: class, interface, or enum expected settable double slopeTolerance = 0.01; ^ /root/JavaX-Caches/tmp_199012515/main.java:12: error: class, interface, or enum expected new IntBuffer indices; ^ /root/JavaX-Caches/tmp_199012515/main.java:13: error: class, interface, or enum expected new DoubleBuffer values; ^ /root/JavaX-Caches/tmp_199012515/main.java:15: error: class, interface, or enum expected *(int[] *data) {} ^ /root/JavaX-Caches/tmp_199012515/main.java:19: error: class, interface, or enum expected while (iData < data.length) { ^ /root/JavaX-Caches/tmp_199012515/main.java:22: error: class, interface, or enum expected DoubleRange startValueRange = doubleRange(startValue-0.5, startValue+0.5); ^ /root/JavaX-Caches/tmp_199012515/main.java:25: error: class, interface, or enum expected DoubleRange totalSlopeRange = null; ^ /root/JavaX-Caches/tmp_199012515/main.java:26: error: class, interface, or enum expected int jData; // our straight line ends at jData-1 ^ /root/JavaX-Caches/tmp_199012515/main.java:27: error: class, interface, or enum expected for (jData = iData+1; jData < data.length; jData++) { ^ /root/JavaX-Caches/tmp_199012515/main.java:27: error: class, interface, or enum expected for (jData = iData+1; jData < data.length; jData++) { ^ /root/JavaX-Caches/tmp_199012515/main.java:27: error: class, interface, or enum expected for (jData = iData+1; jData < data.length; jData++) { ^ /root/JavaX-Caches/tmp_199012515/main.java:31: error: class, interface, or enum expected DoubleRange xRange = doubleRange(x-0.5, x+0.5); ^ /root/JavaX-Caches/tmp_199012515/main.java:35: error: class, interface, or enum expected DoubleRange slopeRange = doubleRange( ^ /root/JavaX-Caches/tmp_199012515/main.java:40: error: class, interface, or enum expected slopeRange = growRange(slopeTolerance, slopeRange); ^ /root/JavaX-Caches/tmp_199012515/main.java:42: error: class, interface, or enum expected if (totalSlopeRange == null) ^ /root/JavaX-Caches/tmp_199012515/main.java:44: error: class, interface, or enum expected else { ^ /root/JavaX-Caches/tmp_199012515/main.java:46: error: class, interface, or enum expected if (empty(slopeRange)) ^ /root/JavaX-Caches/tmp_199012515/main.java:48: error: class, interface, or enum expected else ^ /root/JavaX-Caches/tmp_199012515/main.java:50: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_199012515/main.java:53: error: class, interface, or enum expected values.add(data[iData]); ^ /root/JavaX-Caches/tmp_199012515/main.java:54: error: class, interface, or enum expected iData = max(iData+1, jData-1); ^ /root/JavaX-Caches/tmp_199012515/main.java:55: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_199012515/main.java:58: error: class, interface, or enum expected } ^ 25 errors