Ok it looks like I'm not going to get away with it that easily,

I've replaced 10^i with pow (10, i) but I'm still out of luck, I keep getting the error message

checksum.c: In function ‘main’:
checksum.c:20:44: error: invalid operands to binary % (have ‘double’ and ‘int’)