Update main.cpp

fixed crash on no input