txlyre 1 жил өмнө
parent
commit
de4db81d49

+ 1 - 1
langs/cpp/Dockerfile

@@ -1 +1 @@
-RUN apt-get install gcc -y
+RUN apt-get install gcc g++ -y

+ 1 - 1
langs/cpp/run.sh

@@ -2,6 +2,6 @@ OUT="$(mktemp)"
 
 g++ -o "$OUT" -xc++ -
 
-if [ -f $OUT ]; then
+if [ -f $OUT ]; && ! [ -s $OUT ]; then
   exec "$OUT"
 fi