Skip to content

Commit

Permalink
Fix cpp execution error
Browse files Browse the repository at this point in the history
Invalid language
  • Loading branch information
nknguyenhc committed Nov 9, 2024
1 parent 8c4900a commit 73fc800
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 73fc800

Please sign in to comment.