compiler-discord/docker/cpp/run.sh

6 lines
121 B
Bash

mkdir "$COUNT" && cd "$COUNT"
echo "$1" > program.cpp
g++ program.cpp -o program && ./program
cd .. && rm -rf "$COUNT"