#include<iostream>
#include<map>usingnamespacestd;intmain(){map<string,int>m1,m2,m3,m4,m5;m1["abc"]=1;m2["abc"]=1;m3["abc"]=2;m4["ABC"]=1;m5["ABC"]=2;if(m1==m2)cout<<"m1, m2 Same\n";// key 일치, value 일치if(m1==m3)cout<<"m1, m3 Same\n";// key 일치, value 불일치if(m1==m4)cout<<"m2, m3 Same\n";// key 불일치, value 불일치if(m1==m5)cout<<"m2, m5 Same\n";// key 불일치, value 불일치m2["abcd"]=1;if(m1==m2)cout<<"m1, m2 Same\n";// key, value 가 추가되어 불일치// result : m1, m2 Samereturn0;}