Fixing the compile and Run-time Errors

Closed