While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you.
Start by reading the code and working out what it does and why that might be a problem.
Hint: what will happen if you execute this line in your first assignment?
*pint = 100;