akari0216:

but i really don’t know how to fix this


I’m a bit confused as it seems you’ve already fixed it by changing the type of one variable?



 akari0216:

However,if i changed the type of the variable ‘a’,it works.