Skip to content

Commit

Permalink
Merge pull request #39 from CS3219-AY2425S1/nguyen/code-execution-fixes
Browse files Browse the repository at this point in the history
Fix cpp execution error
  • Loading branch information
nknguyenhc authored Nov 11, 2024
2 parents d9e6867 + 73fc800 commit 9cfb85e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/code-execution-service/server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


app = FastAPI()
languages = ["python", "javascript", "typescript", "java", "c", "c++"]
languages = ["python", "javascript", "typescript", "java", "c", "cpp"]
authentication = UserAuthentication()


Expand Down
2 changes: 1 addition & 1 deletion backend/code-execution-service/worker/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def execute(code: str, lang: str, input: str, timeout: int) -> tuple[str | None,
result = _execute_java(code, input, timeout)
case "c":
result = _execute_c(code, input, timeout)
case "c++":
case "cpp":
result = _execute_cpp(code, input, timeout)
_cleanup()
return result
Expand Down

0 comments on commit 9cfb85e

Please sign in to comment.