#!sapphire
def bernoulli(n)
if(n=0)
1
else
-1/(n+1)*sum(0,n-1,fn(k)comb(n+1,k)*bernoulli(k));
def comb(n,m)
n!/(m!*(n-m)!);
def sum(s,e,f)
if(s=e)
f(s);
else
f(s)+sum(s+1,e,f);
norm> bernoulli(8);
-1/30
norm>
IyFzYXBwaGlyZQoKZGVmIGJlcm5vdWxsaShuKQogIGlmKG49MCkKICAgIDEKICBlbHNlCiAgIC0xLyhuKzEpKnN1bSgwLG4tMSxmbihrKWNvbWIobisxLGspKmJlcm5vdWxsaShrKSk7CiAgCgpkZWYgY29tYihuLG0pCiAgbiEvKG0hKihuLW0pISk7CiAgCmRlZiBzdW0ocyxlLGYpCiAgaWYocz1lKQogICAgIGYocyk7CiAgZWxzZQogICAgIGYocykrc3VtKHMrMSxlLGYpOwogCm5vcm0+IGJlcm5vdWxsaSg4KTsKLTEvMzAKbm9ybT4gCg==
Main.java:1: error: illegal character: '#'
#!sapphire
^
Main.java:1: error: class, interface, or enum expected
#!sapphire
^
Main.java:10: error: class, interface, or enum expected
def comb(n,m)
^
Main.java:13: error: class, interface, or enum expected
def sum(s,e,f)
^
Main.java:16: error: class, interface, or enum expected
else
^
Main.java:19: error: class, interface, or enum expected
norm> bernoulli(8);
^
Main.java:20: error: class, interface, or enum expected
-1/30
^
7 errors