Why was Gamer2015's reply reported? His comments were perfectly fine.
Using code tags is a courtesy to the people whose help you are trying to solicit. If you can make your code easier to read, then you are more likely to take the time to help you. Using code tags helps
you to get the help you need, so Gamer2015's advice was helpful and relevant.
And if your post had been better formatted, it would have been easier to spot the actual question that was asked:
Please solve this question. Why my instructor gave this super complicated problem? |
This is the C++ forum, not the telepathy forum. There's only one person who can answer that question: your instructor.
And I'm afraid we don't write people's code for them. Have a go at writing it yourself. If you have
specific questions or problems, then we'll try and answer them.