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

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

/root/JavaX-Caches/tmp_486888696/main.java:4: error: illegal start of type *() {} // for persistence ^ /root/JavaX-Caches/tmp_486888696/main.java:5: error: illegal start of type *(BigInteger *a, BigInteger *b) { simplify(); } ^ /root/JavaX-Caches/tmp_486888696/main.java:5: error: <identifier> expected *(BigInteger *a, BigInteger *b) { simplify(); } ^ /root/JavaX-Caches/tmp_486888696/main.java:5: error: <identifier> expected *(BigInteger *a, BigInteger *b) { simplify(); } ^ /root/JavaX-Caches/tmp_486888696/main.java:5: error: ';' expected *(BigInteger *a, BigInteger *b) { simplify(); } ^ /root/JavaX-Caches/tmp_486888696/main.java:5: error: <identifier> expected *(BigInteger *a, BigInteger *b) { simplify(); } ^ /root/JavaX-Caches/tmp_486888696/main.java:6: error: illegal start of type *(BigInteger *a, BigInteger *b, bool simplify) { ^ /root/JavaX-Caches/tmp_486888696/main.java:6: error: <identifier> expected *(BigInteger *a, BigInteger *b, bool simplify) { ^ /root/JavaX-Caches/tmp_486888696/main.java:6: error: <identifier> expected *(BigInteger *a, BigInteger *b, bool simplify) { ^ /root/JavaX-Caches/tmp_486888696/main.java:6: error: ';' expected *(BigInteger *a, BigInteger *b, bool simplify) { ^ /root/JavaX-Caches/tmp_486888696/main.java:6: error: <identifier> expected *(BigInteger *a, BigInteger *b, bool simplify) { ^ /root/JavaX-Caches/tmp_486888696/main.java:6: error: ';' expected *(BigInteger *a, BigInteger *b, bool simplify) { ^ /root/JavaX-Caches/tmp_486888696/main.java:6: error: <identifier> expected *(BigInteger *a, BigInteger *b, bool simplify) { ^ /root/JavaX-Caches/tmp_486888696/main.java:9: error: illegal start of type *(BigInteger *a) { b = bigint(1); } ^ /root/JavaX-Caches/tmp_486888696/main.java:9: error: <identifier> expected *(BigInteger *a) { b = bigint(1); } ^ /root/JavaX-Caches/tmp_486888696/main.java:9: error: <identifier> expected *(BigInteger *a) { b = bigint(1); } ^ /root/JavaX-Caches/tmp_486888696/main.java:10: error: illegal start of type *(long a) { this(bigint(a)); } ^ /root/JavaX-Caches/tmp_486888696/main.java:10: error: ';' expected *(long a) { this(bigint(a)); } ^ /root/JavaX-Caches/tmp_486888696/main.java:11: error: illegal start of type *(long a, long b) { this(bigint(a), bigint(b)); } ^ /root/JavaX-Caches/tmp_486888696/main.java:11: error: <identifier> expected *(long a, long b) { this(bigint(a), bigint(b)); } ^ /root/JavaX-Caches/tmp_486888696/main.java:11: error: ';' expected *(long a, long b) { this(bigint(a), bigint(b)); } ^ /root/JavaX-Caches/tmp_486888696/main.java:13: error: ';' expected Rat multiply(BigInteger i) { ret multiply(new Rat(i)); } ^ /root/JavaX-Caches/tmp_486888696/main.java:13: error: ';' expected Rat multiply(BigInteger i) { ret multiply(new Rat(i)); } ^ /root/JavaX-Caches/tmp_486888696/main.java:14: error: ';' expected Rat divide(BigInteger i) { ret divide(new Rat(i)); } ^ /root/JavaX-Caches/tmp_486888696/main.java:14: error: ';' expected Rat divide(BigInteger i) { ret divide(new Rat(i)); } ^ /root/JavaX-Caches/tmp_486888696/main.java:17: error: not a statement ret new Rat(a.multiply(r.a), b.multiply(r.b)); ^ /root/JavaX-Caches/tmp_486888696/main.java:17: error: ';' expected ret new Rat(a.multiply(r.a), b.multiply(r.b)); ^ /root/JavaX-Caches/tmp_486888696/main.java:21: error: not a statement ret new Rat(a.multiply(r.b), b.multiply(r.a)); ^ /root/JavaX-Caches/tmp_486888696/main.java:21: error: ';' expected ret new Rat(a.multiply(r.b), b.multiply(r.a)); ^ /root/JavaX-Caches/tmp_486888696/main.java:35: error: ';' expected ret a.toString(); ^ /root/JavaX-Caches/tmp_486888696/main.java:35: error: variable declaration not allowed here ret a.toString(); ^ /root/JavaX-Caches/tmp_486888696/main.java:37: error: ';' expected ret a + "/" + b; ^ /root/JavaX-Caches/tmp_486888696/main.java:37: error: variable declaration not allowed here ret a + "/" + b; ^ /root/JavaX-Caches/tmp_486888696/main.java:36: error: 'else' without 'if' else ^ /root/JavaX-Caches/tmp_486888696/main.java:37: error: not a statement ret a + "/" + b; ^ /root/JavaX-Caches/tmp_486888696/main.java:46: error: ';' expected ret whole + "+" + rest + "/" + b; ^ /root/JavaX-Caches/tmp_486888696/main.java:46: error: not a statement ret whole + "+" + rest + "/" + b; ^ /root/JavaX-Caches/tmp_486888696/main.java:48: error: ';' expected ret toString(); ^ /root/JavaX-Caches/tmp_486888696/main.java:53: error: not a statement if (!(o instanceof Rat)) ret false; ^ /root/JavaX-Caches/tmp_486888696/main.java:53: error: ';' expected if (!(o instanceof Rat)) ret false; ^ /root/JavaX-Caches/tmp_486888696/main.java:54: error: ';' expected Rat r = cast o; ^ /root/JavaX-Caches/tmp_486888696/main.java:54: error: not a statement Rat r = cast o; ^ /root/JavaX-Caches/tmp_486888696/main.java:55: error: ';' expected ret eq(a, r.a) && eq(b, r.b); ^ /root/JavaX-Caches/tmp_486888696/main.java:55: error: not a statement ret eq(a, r.a) && eq(b, r.b); ^ /root/JavaX-Caches/tmp_486888696/main.java:55: error: ';' expected ret eq(a, r.a) && eq(b, r.b); ^ /root/JavaX-Caches/tmp_486888696/main.java:55: error: not a statement ret eq(a, r.a) && eq(b, r.b); ^ /root/JavaX-Caches/tmp_486888696/main.java:55: error: ';' expected ret eq(a, r.a) && eq(b, r.b); ^ 47 errors