Update main.cpp

fix some wrong things.