Vulnerabilities in Integers and Formatting Functions

Vulnerabilities in Integers and Formatting Functions 

Instructions 
Course: Programming III

In creating C++ applications, you have the ability to utilize various formatting functions in the iostream library.
Answer the following questions: What are some of the formatting vulnerabilities that can be encountered in using the iostream library in C++?
What tips can be utilized to identify these vulnerabilities? Be sure to provide an appropriate source code example to illustrate your points.