C++: Fix some FPs in cpp/missing-check-scanf (second attempt)
#37183
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention