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

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

/root/JavaX-Caches/tmp_1953699297/main.java:3: error: '(' or '[' expected Map<A, Integer> map = new HashMap; ^ /root/JavaX-Caches/tmp_1953699297/main.java:6: error: illegal start of type *(bool useTreeMap) { ^ /root/JavaX-Caches/tmp_1953699297/main.java:6: error: ';' expected *(bool useTreeMap) { ^ /root/JavaX-Caches/tmp_1953699297/main.java:7: error: '(' or '[' expected if (useTreeMap) map = new TreeMap; ^ /root/JavaX-Caches/tmp_1953699297/main.java:9: error: illegal start of type *(TreeMap *map) {} ^ /root/JavaX-Caches/tmp_1953699297/main.java:9: error: <identifier> expected *(TreeMap *map) {} ^ /root/JavaX-Caches/tmp_1953699297/main.java:9: error: <identifier> expected *(TreeMap *map) {} ^ /root/JavaX-Caches/tmp_1953699297/main.java:11: error: illegal start of type *() {} ^ /root/JavaX-Caches/tmp_1953699297/main.java:12: error: illegal start of type *(Iterable<A> c) { addAll(c); } ^ /root/JavaX-Caches/tmp_1953699297/main.java:12: error: ';' expected *(Iterable<A> c) { addAll(c); } ^ /root/JavaX-Caches/tmp_1953699297/main.java:13: error: illegal start of type *(MultiSet<A> ms) { synchronized(ms) { ^ /root/JavaX-Caches/tmp_1953699297/main.java:13: error: ';' expected *(MultiSet<A> ms) { synchronized(ms) { ^ /root/JavaX-Caches/tmp_1953699297/main.java:18: error: ';' expected public synchronized int add(A key) { ret add(key, 1); } ^ /root/JavaX-Caches/tmp_1953699297/main.java:18: error: not a statement public synchronized int add(A key) { ret add(key, 1); } ^ /root/JavaX-Caches/tmp_1953699297/main.java:18: error: ';' expected public synchronized int add(A key) { ret add(key, 1); } ^ /root/JavaX-Caches/tmp_1953699297/main.java:29: error: not a statement if (count <= 0) ret 0; // don't calculate return value in this case ^ /root/JavaX-Caches/tmp_1953699297/main.java:29: error: ';' expected if (count <= 0) ret 0; // don't calculate return value in this case ^ /root/JavaX-Caches/tmp_1953699297/main.java:38: error: not a statement if (count == oldCount) ret; ^ /root/JavaX-Caches/tmp_1953699297/main.java:48: error: ';' expected ret i != null ? i : 0; ^ /root/JavaX-Caches/tmp_1953699297/main.java:48: error: not a statement ret i != null ? i : 0; ^ /root/JavaX-Caches/tmp_1953699297/main.java:52: error: ';' expected ret map.containsKey(key); ^ /root/JavaX-Caches/tmp_1953699297/main.java:66: error: ';' expected synchronized List<A> topTen() { ret getTopTen(); } ^ /root/JavaX-Caches/tmp_1953699297/main.java:68: error: ';' expected synchronized List<A> getTopTen() { ret getTopTen(10); } ^ /root/JavaX-Caches/tmp_1953699297/main.java:75: error: ';' expected ret getSortedListDescending(); ^ /root/JavaX-Caches/tmp_1953699297/main.java:79: error: ';' expected ret reversedList(getSortedListDescending()); ^ /root/JavaX-Caches/tmp_1953699297/main.java:79: error: ';' expected ret reversedList(getSortedListDescending()); ^ /root/JavaX-Caches/tmp_1953699297/main.java:97: error: ';' expected ret map.size(); ^ /root/JavaX-Caches/tmp_1953699297/main.java:112: error: ';' expected synchronized A getMostPopularEntry aka mostPopular() { ^ /root/JavaX-Caches/tmp_1953699297/main.java:154: error: ';' expected synchronized Map<A, Int> asMap aka toMap() { ^ /root/JavaX-Caches/tmp_1953699297/main.java:155: error: ';' expected ret cloneMap(map); ^ /root/JavaX-Caches/tmp_1953699297/main.java:155: error: not a statement ret cloneMap(map); ^ /root/JavaX-Caches/tmp_1953699297/main.java:155: error: ';' expected ret cloneMap(map); ^ 32 errors