Codejam 2020 Round B Problem 2

Used cout.flush() as well. Still getting the same error.

Posted the code above, check it.

1 Like

Got it, thanks man!