compiler-discord/docker/cpp/run.sh

7 lines
132 B
Bash
Raw Normal View History

mkdir "$CODEDIR" && cd "$CODEDIR"
printf %s "$1" > program.cpp
2019-03-15 02:32:39 +01:00
g++ program.cpp -o program && ./program
cd .. && rm -rf "$CODEDIR"