0
Just some quick pointers here to get the more obvious details out of the way. First, you should not use using namespace std;, but rather explicitly state which namespace you are using like this std::cout. This prevents namespace clashes, and is discussed in great detail here.
Second, you shoul...