Skip to content

Commit 7a378b6

Browse files
authored
Update buildcpp.py
1 parent fb8ef46 commit 7a378b6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

buildcpp.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
code += f.readlines()
1010
with open("a.cpp", "w") as f:
1111
f.writelines(code)
12-
cmd = "g++ a.cpp -std=c++20"
13-
os.system(cmd)
12+
cmd = "g++ a.cpp -std=c++11"
13+
if 0 != os.system(cmd):
14+
exit(-1)

0 commit comments

Comments
 (0)