Is there a question associated with this?

No one is going to compile your code then attempt to work out if it meets your assignments specification or not.
It's good that you have attempted this...