Corrected syntax errors. Included header files for 'sma' and 'mergesort'. Compilation ok, need to check execution flow now.