diff --git a/lxc/executors/c b/lxc/executors/c index 0cd5424..d3e3662 100755 --- a/lxc/executors/c +++ b/lxc/executors/c @@ -1,3 +1,3 @@ cd /tmp/$2 -timeout -s KILL 10 gcc -o binary -x c code.code +timeout -s KILL 10 gcc -std=c11 -o binary -x c code.code runuser -l runner$1 -c "cd /tmp/$2 ; cat args.args | xargs -d '\n' timeout -s KILL 3 ./binary" diff --git a/lxc/executors/cpp b/lxc/executors/cpp index 64a5157..d4d351c 100755 --- a/lxc/executors/cpp +++ b/lxc/executors/cpp @@ -1,3 +1,3 @@ cd /tmp/$2 -timeout -s KILL 10 g++ -o binary -x c++ code.code +timeout -s KILL 10 g++ -std=c++17 -o binary -x c++ code.code runuser -l runner$1 -c "cd /tmp/$2 ; cat args.args | xargs -d '\n' timeout -s KILL 3 ./binary"