|
|
|
@ -480,8 +480,9 @@
|
|
|
|
|
"source": [ |
|
|
|
|
"def execute_cpp(code):\n", |
|
|
|
|
" write_output(code)\n", |
|
|
|
|
" compiler_cmd = [\"clang++\", \"-O3\", \"-std=c++17\", \"-march=armv8.3-a\", \"-o\", \"optimized\", \"optimized.cpp\"]\n", |
|
|
|
|
" try:\n", |
|
|
|
|
" compile_result = subprocess.run(compiler_cmd[2], check=True, text=True, capture_output=True)\n", |
|
|
|
|
" compile_result = subprocess.run(compiler_cmd, check=True, text=True, capture_output=True)\n", |
|
|
|
|
" run_cmd = [\"./optimized\"]\n", |
|
|
|
|
" run_result = subprocess.run(run_cmd, check=True, text=True, capture_output=True)\n", |
|
|
|
|
" return run_result.stdout\n", |
|
|
|
|