★★★★为什么下面这段程序有警告??★★★★
#include <utility>
#include <map>
#include <iomanip>
#include <iostream>
using namespace std;
int main()
{
pair<int,double> p1(10,1.1e-2);
pair<int,double> p2;
p2 = make_pair(10,2.22e-1);
pair<int,double> p3(p1);
cout.precision(3);
cout << "The pair p1 is:(" << p1.first << ", " << p1.second << ")." << endl;
cout << "The pair p2 is:(" << p2.first << ", " << p2.second << ")." << endl;
cout << "The pair p3 is:(" << p3.first << ", " << p3.second << ")." << endl;
//using a pair for a map element;
map<int,int> m1;
map<int,int>::iterator m1_Iter;
typedef pair<int,int> Map_Int_Pair;
m1.insert(Map_Int_Pair(1,10));
m1.insert(Map_Int_Pair(2,20));
m1.insert(Map_Int_Pair(3,30));
cout << "The element pairs of the map m1 are :";
for (m1_Iter = m1.begin(); m1_Iter != m1.end();m1_Iter++)
cout << " (" << m1_Iter->first << ", " << m1_Iter->second << ") ";
cout << ". " << endl;
return 0;
}