Cppcheck warning

7 warnings related to "scanf" are skipped. The other warnings are fixed.