Stress Test - YessineJallouli/Competitive-Programming GitHub Wiki
Use chmod +x
followed by file name to get permission.
g++ gen.cpp -o gen
g++ main.cpp -o main
g++ correct.cpp -o correct
for ((i = 1; i; i++)) do
echo $i
./gen > int
./main < int > out1
./correct < int > out2
diff -w out1 out2 || break
done
./script.sh