Wrote /root/JavaX-Caches/tmp_229933674/main.java - 9769 bytes (written=9769, should be 9769)
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_498194996 /root/JavaX-Caches/tmp_229933674/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_229933674/main.java:21: error: class, interface, or enum expected
sclass CompactHashMap extends AbstractMap {
^
/root/JavaX-Caches/tmp_229933674/main.java:22: error: class, interface, or enum expected
final static int INITIAL_SIZE = 3;
^
/root/JavaX-Caches/tmp_229933674/main.java:23: error: class, interface, or enum expected
final static double LOAD_FACTOR = 0.6;
^
/root/JavaX-Caches/tmp_229933674/main.java:26: error: class, interface, or enum expected
final static Object nullObject = new Object();
^
/root/JavaX-Caches/tmp_229933674/main.java:34: error: class, interface, or enum expected
final static Object deletedObject = new Object();
^
/root/JavaX-Caches/tmp_229933674/main.java:35: error: class, interface, or enum expected
int elements;
^
/root/JavaX-Caches/tmp_229933674/main.java:36: error: class, interface, or enum expected
int freecells;
^
/root/JavaX-Caches/tmp_229933674/main.java:37: error: class, interface, or enum expected
O[] table; // key, value, key, value, ...
^
/root/JavaX-Caches/tmp_229933674/main.java:40: error: class, interface, or enum expected
*() {
^
/root/JavaX-Caches/tmp_229933674/main.java:42: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_229933674/main.java:46: error: class, interface, or enum expected
elements = 0;
^
/root/JavaX-Caches/tmp_229933674/main.java:47: error: class, interface, or enum expected
freecells = tableSize();
^
/root/JavaX-Caches/tmp_229933674/main.java:49: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_229933674/main.java:56: error: class, interface, or enum expected
public synchronized int size() {
^
/root/JavaX-Caches/tmp_229933674/main.java:58: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_229933674/main.java:63: error: class, interface, or enum expected
public synchronized boolean isEmpty() {
^
/root/JavaX-Caches/tmp_229933674/main.java:65: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_229933674/main.java:70: error: class, interface, or enum expected
public synchronized void clear() {
^
/root/JavaX-Caches/tmp_229933674/main.java:72: error: class, interface, or enum expected
for (int ix = 0; ix < tableSize(); ix++) {
^
/root/JavaX-Caches/tmp_229933674/main.java:72: error: class, interface, or enum expected
for (int ix = 0; ix < tableSize(); ix++) {
^
/root/JavaX-Caches/tmp_229933674/main.java:72: error: class, interface, or enum expected
for (int ix = 0; ix < tableSize(); ix++) {
^
/root/JavaX-Caches/tmp_229933674/main.java:74: error: class, interface, or enum expected
value(ix, null);
^
/root/JavaX-Caches/tmp_229933674/main.java:75: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_229933674/main.java:78: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_229933674/main.java:83: error: class, interface, or enum expected
public synchronized boolean containsKey(Object k) {
^
/root/JavaX-Caches/tmp_229933674/main.java:85: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_229933674/main.java:90: error: class, interface, or enum expected
public synchronized boolean containsValue(Object v) {
^
/root/JavaX-Caches/tmp_229933674/main.java:94: error: class, interface, or enum expected
for (int ix = 0; ix < tableSize(); ix++)
^
/root/JavaX-Caches/tmp_229933674/main.java:94: error: class, interface, or enum expected
for (int ix = 0; ix < tableSize(); ix++)
^
/root/JavaX-Caches/tmp_229933674/main.java:94: error: class, interface, or enum expected
for (int ix = 0; ix < tableSize(); ix++)
^
/root/JavaX-Caches/tmp_229933674/main.java:98: error: class, interface, or enum expected
return false;
^
/root/JavaX-Caches/tmp_229933674/main.java:99: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_229933674/main.java:104: error: class, interface, or enum expected
public synchronized Set> entrySet() {
^
/root/JavaX-Caches/tmp_229933674/main.java:106: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_229933674/main.java:112: error: class, interface, or enum expected
public synchronized V remove(Object k) {
^
/root/JavaX-Caches/tmp_229933674/main.java:116: error: class, interface, or enum expected
if (key(index) != null) {
^
/root/JavaX-Caches/tmp_229933674/main.java:121: error: class, interface, or enum expected
key(index, deletedObject);
^
/root/JavaX-Caches/tmp_229933674/main.java:122: error: class, interface, or enum expected
value(index, deletedObject);
^
/root/JavaX-Caches/tmp_229933674/main.java:124: error: class, interface, or enum expected
elements--;
^
/root/JavaX-Caches/tmp_229933674/main.java:125: error: class, interface, or enum expected
return v;
^
/root/JavaX-Caches/tmp_229933674/main.java:126: error: class, interface, or enum expected
} else
^
/root/JavaX-Caches/tmp_229933674/main.java:129: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_229933674/main.java:135: error: class, interface, or enum expected
public synchronized V put(K k, V v) {
^
/root/JavaX-Caches/tmp_229933674/main.java:139: error: class, interface, or enum expected
int hash = k.hashCode();
^
/root/JavaX-Caches/tmp_229933674/main.java:140: error: class, interface, or enum expected
int index = (hash & 0x7FFFFFFF) % tableSize();
^
/root/JavaX-Caches/tmp_229933674/main.java:141: error: class, interface, or enum expected
int offset = 1;
^
/root/JavaX-Caches/tmp_229933674/main.java:142: error: class, interface, or enum expected
int deletedix = -1;
^
/root/JavaX-Caches/tmp_229933674/main.java:145: error: class, interface, or enum expected
while(key(index) != null &&
^
/root/JavaX-Caches/tmp_229933674/main.java:154: error: class, interface, or enum expected
index = ((index + offset) & 0x7FFFFFFF) % tableSize();
^
/root/JavaX-Caches/tmp_229933674/main.java:155: error: class, interface, or enum expected
offset = offset*2 + 1;
^
/root/JavaX-Caches/tmp_229933674/main.java:157: error: class, interface, or enum expected
if (offset == -1)
^
/root/JavaX-Caches/tmp_229933674/main.java:159: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_229933674/main.java:164: error: class, interface, or enum expected
else
^
/root/JavaX-Caches/tmp_229933674/main.java:168: error: class, interface, or enum expected
elements++;
^
/root/JavaX-Caches/tmp_229933674/main.java:170: error: class, interface, or enum expected
key(index, k);
^
/root/JavaX-Caches/tmp_229933674/main.java:171: error: class, interface, or enum expected
value(index, v);
^
/root/JavaX-Caches/tmp_229933674/main.java:174: error: class, interface, or enum expected
if (1 - (freecells / (double) tableSize()) > LOAD_FACTOR)
^
/root/JavaX-Caches/tmp_229933674/main.java:176: error: class, interface, or enum expected
return null;
^
/root/JavaX-Caches/tmp_229933674/main.java:177: error: class, interface, or enum expected
} else { // was there already
^
/root/JavaX-Caches/tmp_229933674/main.java:180: error: class, interface, or enum expected
value(index, v);
^
/root/JavaX-Caches/tmp_229933674/main.java:181: error: class, interface, or enum expected
return oldv;
^
/root/JavaX-Caches/tmp_229933674/main.java:182: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_229933674/main.java:190: error: class, interface, or enum expected
O[] newTable = new Object[newCapacity*2];
^
/root/JavaX-Caches/tmp_229933674/main.java:192: error: class, interface, or enum expected
for (int ix = 0; ix < oldCapacity; ix++) {
^
/root/JavaX-Caches/tmp_229933674/main.java:192: error: class, interface, or enum expected
for (int ix = 0; ix < oldCapacity; ix++) {
^
/root/JavaX-Caches/tmp_229933674/main.java:192: error: class, interface, or enum expected
for (int ix = 0; ix < oldCapacity; ix++) {
^
/root/JavaX-Caches/tmp_229933674/main.java:194: error: class, interface, or enum expected
if (k == null || k == deletedObject)
^
/root/JavaX-Caches/tmp_229933674/main.java:197: error: class, interface, or enum expected
int hash = k.hashCode();
^
/root/JavaX-Caches/tmp_229933674/main.java:198: error: class, interface, or enum expected
int index = (hash & 0x7FFFFFFF) % newCapacity;
^
/root/JavaX-Caches/tmp_229933674/main.java:199: error: class, interface, or enum expected
int offset = 1;
^
/root/JavaX-Caches/tmp_229933674/main.java:202: error: class, interface, or enum expected
while(newTable[index*2] != null) { // no need to test for duplicates
^
/root/JavaX-Caches/tmp_229933674/main.java:204: error: class, interface, or enum expected
offset = offset*2 + 1;
^
/root/JavaX-Caches/tmp_229933674/main.java:206: error: class, interface, or enum expected
if (offset == -1)
^
/root/JavaX-Caches/tmp_229933674/main.java:208: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_229933674/main.java:211: error: class, interface, or enum expected
newTable[index*2+1] = value(ix);
^
/root/JavaX-Caches/tmp_229933674/main.java:212: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_229933674/main.java:215: error: class, interface, or enum expected
freecells = tableSize() - elements;
^
/root/JavaX-Caches/tmp_229933674/main.java:216: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_229933674/main.java:222: error: class, interface, or enum expected
public synchronized V get(Object k) {
^
/root/JavaX-Caches/tmp_229933674/main.java:224: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_229933674/main.java:230: error: class, interface, or enum expected
public synchronized Collection values() {
^
/root/JavaX-Caches/tmp_229933674/main.java:232: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_229933674/main.java:237: error: class, interface, or enum expected
public synchronized Set keySet() {
^
/root/JavaX-Caches/tmp_229933674/main.java:239: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_229933674/main.java:243: error: class, interface, or enum expected
final int findKeyIndex(Object k) {
^
/root/JavaX-Caches/tmp_229933674/main.java:247: error: class, interface, or enum expected
int hash = k.hashCode();
^
/root/JavaX-Caches/tmp_229933674/main.java:248: error: class, interface, or enum expected
int index = (hash & 0x7FFFFFFF) % tableSize();
^
/root/JavaX-Caches/tmp_229933674/main.java:249: error: class, interface, or enum expected
int offset = 1;
^
/root/JavaX-Caches/tmp_229933674/main.java:252: error: class, interface, or enum expected
while(key(index) != null &&
^
/root/JavaX-Caches/tmp_229933674/main.java:256: error: class, interface, or enum expected
offset = offset*2 + 1;
^
/root/JavaX-Caches/tmp_229933674/main.java:258: error: class, interface, or enum expected
if (offset == -1)
^
/root/JavaX-Caches/tmp_229933674/main.java:260: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_229933674/main.java:262: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_229933674/main.java:364: error: class, interface, or enum expected
K key(int i) { ret (K) table[i*2]; }
^
/root/JavaX-Caches/tmp_229933674/main.java:364: error: class, interface, or enum expected
K key(int i) { ret (K) table[i*2]; }
^
/root/JavaX-Caches/tmp_229933674/main.java:365: error: class, interface, or enum expected
void key(int i, O key) { table[i*2] = key; }
^
/root/JavaX-Caches/tmp_229933674/main.java:366: error: class, interface, or enum expected
V value(int i) { ret (V) table[i*2+1]; }
^
/root/JavaX-Caches/tmp_229933674/main.java:367: error: class, interface, or enum expected
void value(int i, O value) { table[i*2+1] = value; }
^
/root/JavaX-Caches/tmp_229933674/main.java:369: error: class, interface, or enum expected
int tableSize() { ret table.length/2; }
^
99 errors