Can someone please check my code?

@trently101

If you have access to an Arduino board, please use the IDE so that we can help out here.

To replace cin<< & cout<<, take a look at this reference about Serial.

Cheers

Jacques