Update main.cpp

fixed error typo on line 1009 removed "== -1 ;" added "== -1 {"