Polyman Documentation - v2.2.2
    Preparing search index...

    Function compileSolution

    • Compiles a solution based on file extension. Supports C++ (.cpp), Python (.py), and Java (.java). For interpreted languages, returns the interpreter command.

      Parameters

      • sourcePath: string

        Path to solution source file

      Returns Promise<void>

      Resolves when compilation completes

      If compilation fails

      If file extension is not supported

      await compileSolution('Solution.cpp')
      // Compiles to ./Solution executable
      await compileSolution('Solution.py')
      // No compilation needed (interpreted)