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
Throws
If compilation fails
Throws
If file extension is not supported
Example
awaitcompileSolution('Solution.cpp') // Compiles to ./Solution executable
Example
awaitcompileSolution('Solution.py') // No compilation needed (interpreted)
Compiles a solution based on file extension. Supports C++ (.cpp), Python (.py), and Java (.java). For interpreted languages, returns the interpreter command.