Commit
·
60275de
1
Parent(s):
02ebdd5
Places new line to reduce miscompilation.
Browse files- execute.py +1 -1
execute.py
CHANGED
|
@@ -117,7 +117,7 @@ def process_case(target, candidate, reference, result, cppstd):
|
|
| 117 |
|
| 118 |
def unsafe_execute_cpp(candidate, reference, result, timeout, cppstd):
|
| 119 |
with create_tempdir():
|
| 120 |
-
code = "#include <bits/stdc++.h>\n" + candidate + reference
|
| 121 |
open(f"test.cpp", "w").write(code)
|
| 122 |
|
| 123 |
cpp_compiler = os.getenv("GENERICIFY_CLANG")
|
|
|
|
| 117 |
|
| 118 |
def unsafe_execute_cpp(candidate, reference, result, timeout, cppstd):
|
| 119 |
with create_tempdir():
|
| 120 |
+
code = "#include <bits/stdc++.h>\n" + candidate + "\n" + reference
|
| 121 |
open(f"test.cpp", "w").write(code)
|
| 122 |
|
| 123 |
cpp_compiler = os.getenv("GENERICIFY_CLANG")
|