COMP:Fix "warning" issues of cppcheck on ANTS

All the warnings are fixed except 7 warnings related to the "scanf" that
are skipped.