I didn't have any division in my code but I think I know what the problem may be. I used the randmise thing. Here's a section of that code.
Code:
        yourAttack = rand() % 15;
        armorE = rand() % armorEP;
        weaponE = rand() % weaponEP;