Thanks, i actually forgot the endl in the program :) .
then used cout.flush() and when it started working i added the endl again.
Thanks for correcting this tip :)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.