What is the error?
Is there some reason why you have two main()s? That doesn't make any sense. What does the beginning part have anything to do with the problem?
We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.