I'm AlanWu. I'm in junior high. I've written a lot of bad code. Here's what I changed to make it less bad.

1. Name things like a human

// Don't do this

int d; // days? distance? damage?

int cnt = 0; // "cnt" — you know, the classic