You are right, temp is not used in lite-c, you have to declare it by yourself.