Skip to content
Snippets Groups Projects
Commit 3f107547 authored by Nicolas M. Thiéry's avatar Nicolas M. Thiéry
Browse files

Ajout limites 10s total et 1s exécution du programme

parent 8cbc3510
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,9 @@ if [ x"$1" = "x" ]; then
exit 0
fi
ulimit -H -t 10
if g++ $CXXFLAGS $1; then
ulimit -H -t 1
./a.out
else
exit $?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment