add void in main()'s ()

remove unsed integer k

fix bugs by const1 & const2