Wrote /root/JavaX-Caches/tmp_656858490/main.java - 4076 bytes (written=4076, should be 4076)
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_2102727086 /root/JavaX-Caches/tmp_656858490/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_656858490/main.java:2: error: class, interface, or enum expected
persistable sclass CompressionSearch_AnyType extends Probabilistic {
^
/root/JavaX-Caches/tmp_656858490/main.java:8: error: class, interface, or enum expected
gettable Data inputData;
^
/root/JavaX-Caches/tmp_656858490/main.java:9: error: class, interface, or enum expected
settable long inputSize; // in bytes
^
/root/JavaX-Caches/tmp_656858490/main.java:11: error: class, interface, or enum expected
event onNewBest;
^
/root/JavaX-Caches/tmp_656858490/main.java:12: error: class, interface, or enum expected
event onDisqualified(Submission s);
^
/root/JavaX-Caches/tmp_656858490/main.java:16: error: class, interface, or enum expected
new Best best;
^
/root/JavaX-Caches/tmp_656858490/main.java:17: error: class, interface, or enum expected
new L strategies;
^
/root/JavaX-Caches/tmp_656858490/main.java:19: error: class, interface, or enum expected
*() { init(); }
^
/root/JavaX-Caches/tmp_656858490/main.java:19: error: class, interface, or enum expected
*() { init(); }
^
/root/JavaX-Caches/tmp_656858490/main.java:20: error: class, interface, or enum expected
*(Regime *regime) { init(); }
^
/root/JavaX-Caches/tmp_656858490/main.java:21: error: class, interface, or enum expected
*(Regime *regime, Data *inputData, long *inputSize) { init(); }
^
/root/JavaX-Caches/tmp_656858490/main.java:25: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_656858490/main.java:30: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_656858490/main.java:35: error: ';' expected
settable O notes;
^
/root/JavaX-Caches/tmp_656858490/main.java:35: error: expected
settable O notes;
^
/root/JavaX-Caches/tmp_656858490/main.java:37: error: expected
toString {
^
/root/JavaX-Caches/tmp_656858490/main.java:38: error: ';' expected
if (!correct()) ret linesLL("BAD");
^
/root/JavaX-Caches/tmp_656858490/main.java:38: error: variable declaration not allowed here
if (!correct()) ret linesLL("BAD");
^
/root/JavaX-Caches/tmp_656858490/main.java:40: error: ';' expected
ret linesLL(
^
/root/JavaX-Caches/tmp_656858490/main.java:41: error: not a statement
(isHardChecked() ? " HARD " : "MAYBE ") + ifloor(score()*100),
^
/root/JavaX-Caches/tmp_656858490/main.java:41: error: ';' expected
(isHardChecked() ? " HARD " : "MAYBE ") + ifloor(score()*100),
^
/root/JavaX-Caches/tmp_656858490/main.java:41: error: ';' expected
(isHardChecked() ? " HARD " : "MAYBE ") + ifloor(score()*100),
^
/root/JavaX-Caches/tmp_656858490/main.java:42: error: ';' expected
"Exact compression ratio: " + scoreRatio(),
^
/root/JavaX-Caches/tmp_656858490/main.java:44: error: ';' expected
indentx(shorten(500, str(decompressor()))),
^
/root/JavaX-Caches/tmp_656858490/main.java:46: error: ';' expected
indentx(shorten(500, bytesToHex(compressed())))
^
/root/JavaX-Caches/tmp_656858490/main.java:56: error: expected
simplyCached byte[] compressed() {
^
/root/JavaX-Caches/tmp_656858490/main.java:57: error: ';' expected
ret decompressor_cache == null ?: regime.decompressorToBytes(decompressor_cache);
^
/root/JavaX-Caches/tmp_656858490/main.java:60: error: ';' expected
simplyCached A decompressor() {
^
/root/JavaX-Caches/tmp_656858490/main.java:60: error: invalid method declaration; return type required
simplyCached A decompressor() {
^
/root/JavaX-Caches/tmp_656858490/main.java:61: error: ';' expected
ret compressed_cache == null ?: regime.decompressorFromBytes(compressed_cache);
^
/root/JavaX-Caches/tmp_656858490/main.java:64: error: ';' expected
simplyCached S decompressor_str() {
^
/root/JavaX-Caches/tmp_656858490/main.java:64: error: invalid method declaration; return type required
simplyCached S decompressor_str() {
^
/root/JavaX-Caches/tmp_656858490/main.java:65: error: ';' expected
ret strOrNull(decompressor());
^
/root/JavaX-Caches/tmp_656858490/main.java:65: error: ';' expected
ret strOrNull(decompressor());
^
/root/JavaX-Caches/tmp_656858490/main.java:68: error: ';' expected
int compressedSize aka nBytes() { ret l(compressed()); }
^
/root/JavaX-Caches/tmp_656858490/main.java:68: error: ';' expected
int compressedSize aka nBytes() { ret l(compressed()); }
^
/root/JavaX-Caches/tmp_656858490/main.java:68: error: ';' expected
int compressedSize aka nBytes() { ret l(compressed()); }
^
/root/JavaX-Caches/tmp_656858490/main.java:70: error: ';' expected
simplyCached Ratio scoreRatio() {
^
/root/JavaX-Caches/tmp_656858490/main.java:70: error: invalid method declaration; return type required
simplyCached Ratio scoreRatio() {
^
/root/JavaX-Caches/tmp_656858490/main.java:71: error: ';' expected
ret Ratio(inputSize(), compressedSize());
^
/root/JavaX-Caches/tmp_656858490/main.java:71: error: ';' expected
ret Ratio(inputSize(), compressedSize());
^
/root/JavaX-Caches/tmp_656858490/main.java:71: error: ';' expected
ret Ratio(inputSize(), compressedSize());
^
/root/JavaX-Caches/tmp_656858490/main.java:74: error: expected
simplyCached double score() {
^
/root/JavaX-Caches/tmp_656858490/main.java:75: error: ';' expected
ret scoreRatio()!;
^
/root/JavaX-Caches/tmp_656858490/main.java:90: error: ';' expected
ret checkResult(regime.runDecompressor(decompressor()));
^
/root/JavaX-Caches/tmp_656858490/main.java:90: error: ';' expected
ret checkResult(regime.runDecompressor(decompressor()));
^
/root/JavaX-Caches/tmp_656858490/main.java:93: error: ';' expected
simplyCached bool isHardChecked() {
^
/root/JavaX-Caches/tmp_656858490/main.java:93: error: invalid method declaration; return type required
simplyCached bool isHardChecked() {
^
/root/JavaX-Caches/tmp_656858490/main.java:94: error: not a statement
if (!correct()) false;
^
/root/JavaX-Caches/tmp_656858490/main.java:97: error: not a statement
if (nextRegime == null) true;
^
/root/JavaX-Caches/tmp_656858490/main.java:98: error: ';' expected
ret checkUnder(nextRegime);
^
/root/JavaX-Caches/tmp_656858490/main.java:98: error: not a statement
ret checkUnder(nextRegime);
^
/root/JavaX-Caches/tmp_656858490/main.java:98: error: ';' expected
ret checkUnder(nextRegime);
^
/root/JavaX-Caches/tmp_656858490/main.java:102: error: ';' expected
ret eq(toByteList(decompressed), inputData());
^
/root/JavaX-Caches/tmp_656858490/main.java:102: error: ';' expected
ret eq(toByteList(decompressed), inputData());
^
/root/JavaX-Caches/tmp_656858490/main.java:102: error: ';' expected
ret eq(toByteList(decompressed), inputData());
^
/root/JavaX-Caches/tmp_656858490/main.java:105: error: ';' expected
simplyCached Bool correct() {
^
/root/JavaX-Caches/tmp_656858490/main.java:105: error: invalid method declaration; return type required
simplyCached Bool correct() {
^
/root/JavaX-Caches/tmp_656858490/main.java:106: error: ';' expected
ret eq(toByteList(decompressed()), inputData());
^
/root/JavaX-Caches/tmp_656858490/main.java:106: error: ';' expected
ret eq(toByteList(decompressed()), inputData());
^
/root/JavaX-Caches/tmp_656858490/main.java:106: error: ';' expected
ret eq(toByteList(decompressed()), inputData());
^
/root/JavaX-Caches/tmp_656858490/main.java:110: error: class, interface, or enum expected
Submission _submit(A compression, O notes) {
^
/root/JavaX-Caches/tmp_656858490/main.java:112: error: class, interface, or enum expected
print("Received submission");
^
/root/JavaX-Caches/tmp_656858490/main.java:113: error: class, interface, or enum expected
print("Code: " + takeFirst(500, str(compression)));
^
/root/JavaX-Caches/tmp_656858490/main.java:114: error: class, interface, or enum expected
new Submission s;
^
/root/JavaX-Caches/tmp_656858490/main.java:115: error: class, interface, or enum expected
s.notes(notes);
^
/root/JavaX-Caches/tmp_656858490/main.java:116: error: class, interface, or enum expected
print("Notes: " + takeFirst(500, str(notes)));
^
/root/JavaX-Caches/tmp_656858490/main.java:117: error: class, interface, or enum expected
s.setDecompressor(compression);
^
/root/JavaX-Caches/tmp_656858490/main.java:118: error: class, interface, or enum expected
print("Size: " + nBytes(s.nBytes()));
^
/root/JavaX-Caches/tmp_656858490/main.java:119: error: class, interface, or enum expected
if (s.score() > best.score())
^
/root/JavaX-Caches/tmp_656858490/main.java:122: error: class, interface, or enum expected
disqualified(s);
^
/root/JavaX-Caches/tmp_656858490/main.java:123: error: class, interface, or enum expected
} else {
^
/root/JavaX-Caches/tmp_656858490/main.java:125: error: class, interface, or enum expected
best.put(s, s.score();
^
/root/JavaX-Caches/tmp_656858490/main.java:126: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_656858490/main.java:128: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_656858490/main.java:132: error: class, interface, or enum expected
ret best!;
^
/root/JavaX-Caches/tmp_656858490/main.java:133: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_656858490/main.java:137: error: class, interface, or enum expected
if (s == null || !s.isHardChecked()) null;
^
/root/JavaX-Caches/tmp_656858490/main.java:138: error: class, interface, or enum expected
ret s;
^
/root/JavaX-Caches/tmp_656858490/main.java:139: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_656858490/main.java:143: error: class, interface, or enum expected
ret s?.decompressor();
^
/root/JavaX-Caches/tmp_656858490/main.java:144: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_656858490/main.java:146: error: class, interface, or enum expected
bool has() { ret bestSubmission() != null; }
^
/root/JavaX-Caches/tmp_656858490/main.java:150: error: class, interface, or enum expected
initAction(compressor);
^
/root/JavaX-Caches/tmp_656858490/main.java:151: error: class, interface, or enum expected
compressor.setSearch(this);
^
/root/JavaX-Caches/tmp_656858490/main.java:152: error: class, interface, or enum expected
strategies.add(compressor);
^
/root/JavaX-Caches/tmp_656858490/main.java:153: error: class, interface, or enum expected
compressor.run();
^
/root/JavaX-Caches/tmp_656858490/main.java:154: error: class, interface, or enum expected
}
^
88 errors