Update main.cpp

fix a linking issue: entry point main() cannot be in any namespace.