Update main.cpp

Missed { } in all the patching.
Merge pull request #2 from ofcaah/patch-1

Update main.cpp