Flush std::cout after each solution

Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>