Update main.cpp

Fixed Up some Errors