It is considered bad form to use C and C ++ stream reading functions in one program. Nevertheless, this has never led to errors before.
Quite recently, solving a problem in which you need to consistently read int and char[] encountered this situation. If we read:
intviascanf, andchar[]viacinintviacin, andchar[]viascanf
then this leads to the wrong answer. If both parameters are read by the same function, then the solution passes.
Therefore, the question arose: in what situations are possible conflicts between these functions.