Quick and Merge Sorts

Don’t compile. Errors are:
sorting.erl:23: syntax error before: '.'
sorting.erl:2: function mergesorts/1 undefined
sorting.erl:8: call to local/imported function len/1 is illegal in guard
sorting.erl:4: Warning: function len/1 is unused
sorting.erl:5: Warning: variable 'Hd' is unused
sorting.erl:7: Warning: function splith/3 is unused
error