fix printf and input compiliation