Cs50 ide error with sizeof


#1

whats wrong with this?


#2

the error message says sizeof(i) is unsigned long not an int, so you should use %ul instead of %i see http://www.cplusplus.com/reference/cstdio/printf/


#3

Hi I am stuck with the same problem but your solution didn’t help. Any idea why %ul or %u1 doesn’t work for me?