• + 1 comment

    Thank You! I had encountered a problem like this before where it was fixed by cin.sync() but it didn't work here. Although cin.sync() fixed this problem when I ran this on dev.