def METHOD_NAME(path):
    try:
        extension = get_solution_language(path)
        if extension == 'cpp':
            run(f"g++ -std=c++17 {path} -o Main")
        elif extension == 'java':
            run(f"javac {path} -d  .")
    except:
        raise RuntimeError("Compile Error")
    return extension