@echo off
g++ -O2 -Wall gen.cpp -o gen.exe
g++ -O2 -Wall connections_dp.cpp -o connections_dp.exe
g++ -O2 -Wall connections_dp_20.cpp -o connections_dp_20.exe
g++ -O2 -Wall connections_dp_60.cpp -o connections_dp_60.exe
for /L %%i in (1, 1, 100500) do (
  gen.exe
  connections_dp.exe
  connections_dp_20.exe
  connections_dp_60.exe
  fc stress.out connections.out || exit
  fc stress2.out connections.out || exit
  echo Test %%i: OK
)