An error about the use of "%"


Why does this code have an error?
I’m not formatting a string, but it says “not all arguments converted during string formatting”.

May anyone explain it to me, thanks in advance!

What does strEncSeq() return? Apparently a string, hence the error.

It returns a integer.

Thank you for your reminding, I found there is a mistake in my code.