Fix run bug. Change cout to printf.