Spaces:
Sleeping
Sleeping
Update utils.py
Browse files
utils.py
CHANGED
|
@@ -18,7 +18,7 @@ def capture_output():
|
|
| 18 |
finally:
|
| 19 |
sys.stdout, sys.stderr = old_out, old_err
|
| 20 |
|
| 21 |
-
def execute_code(code: str, stdin: str = "", language: str = "
|
| 22 |
"""
|
| 23 |
Execute code in the specified language and return (stdout, stderr, exception)
|
| 24 |
|
|
|
|
| 18 |
finally:
|
| 19 |
sys.stdout, sys.stderr = old_out, old_err
|
| 20 |
|
| 21 |
+
def execute_code(code: str, stdin: str = "", language: str = "cpp") -> Tuple[str, str, str]:
|
| 22 |
"""
|
| 23 |
Execute code in the specified language and return (stdout, stderr, exception)
|
| 24 |
|