Originally Posted by itsme86
I get so many errors with your code that it's not even funny...I'll see if I can't figure out what's going on in there.
EDIT: Forget it...start smaller...much smaller. Here's a couple of things that I ran into just looking through it quickly. if() doesn't have a return value. You can't do something like a = if(cond) b; else c;. Try this instead: a = cond ? b : c;. Also, the first argument to scanf() should be a string...%i isn't a string, but "%i" is. You're using a variable called leap but it doesn't exist. Seriously, I must have gotten about 200 errors from that code.