pub fn format_compile_result(result: &CompileResult) -> String
Format the compilation result for display.