async def _compile_code(self, instance: Instance) -> InstanceExecResponse:
        """
        Compile the code on the instance.

        Args:
            instance: The MorphCloud instance

        Returns:
            InstanceExecResponse: Result of compilation

        Raises:
            RuntimeError: If compilation fails
        """
        compile_result = await instance.aexec("cd /workspace && ./compile")

        if compile_result.exit_code != 0:
            raise RuntimeError(f"Compilation error exit code {compile_result.exit_code}\n{compile_result.stderr}")

        return compile_result

        Compile the code on the instance.

        Args:
            instance: The MorphCloud instance

        Returns:
            InstanceExecResponse: Result of compilation

        Raises:
            RuntimeError: If compilation fails
        
src/open_r1/utils/competitive_programming/morph_client.py