compiler\bin\g++.exe -Wall test.cpp -o text.exe
Then I try to execute it with
test.exe < in.txt > out.txt
so it outputs STDIN and STDOUT to textfiles. Then, I just compare those files to records from database about test examples.
My problem is : how do I limit execution time and memory for executing their code ?
P.S. If moderators think that topic is in wrong subforum, please transfer it into correct one. I thought that this one was the most appropriate.