def ram(n)
let(res,ram1(n))
not(null?(res)) &&
length(res) = 4;
def ram1(n)
ram2(n,1,n^(1/3),[]);
def ram2(n,x,y,ls)
if(x>y)
ls
else if(cube?(n-x^3))
ram2(n,x+1,y,cons(n-x^3,ls));
else
ram2(n,x+1,y,ls);
def cube?(n)
let(x,floor(n^(1/3)))
n = x^3 || n = (x+1)^3;
def find(f,x,cnt)
if(x=cnt)
#f
else if(f(x))
{display(x),newline(),find(f,x+1,cnt)}
else
find(f,x+1,cnt);
ZGVmIHJhbShuKQogIGxldChyZXMscmFtMShuKSkKICAgIG5vdChudWxsPyhyZXMpKSAmJgogICAgbGVuZ3RoKHJlcykgPSA0OwoKZGVmIHJhbTEobikKICByYW0yKG4sMSxuXigxLzMpLFtdKTsKCmRlZiByYW0yKG4seCx5LGxzKQogIGlmKHg+eSkKICAgIGxzCiAgZWxzZSBpZihjdWJlPyhuLXheMykpCiAgICByYW0yKG4seCsxLHksY29ucyhuLXheMyxscykpOwogIGVsc2UKICAgIHJhbTIobix4KzEseSxscyk7CiAgICAgICAgICAgICAgICAgICAgICAKZGVmIGN1YmU/KG4pCiAgbGV0KHgsZmxvb3Iobl4oMS8zKSkpCiAgICBuID0geF4zIHx8IG4gPSAoeCsxKV4zOwogICAgICAgICAgICAgICAgICAgICAgCmRlZiBmaW5kKGYseCxjbnQpCiAgaWYoeD1jbnQpCiAgICAjZgogIGVsc2UgaWYoZih4KSkKICAgIHtkaXNwbGF5KHgpLG5ld2xpbmUoKSxmaW5kKGYseCsxLGNudCl9CiAgZWxzZSAKICAgIGZpbmQoZix4KzEsY250KTsKICA=
Main.java:1: error: class, interface, or enum expected
def ram(n)
^
Main.java:6: error: class, interface, or enum expected
def ram1(n)
^
Main.java:9: error: class, interface, or enum expected
def ram2(n,x,y,ls)
^
Main.java:14: error: class, interface, or enum expected
else
^
Main.java:17: error: class, interface, or enum expected
def cube?(n)
^
Main.java:21: error: class, interface, or enum expected
def find(f,x,cnt)
^
Main.java:23: error: illegal character: '#'
#f
^
7 errors