fork download
  1. #include <iostream>
  2. #include <map>
  3. using namespace std;
  4.  
  5. int main() {
  6. // your code goes here
  7. map<string,string> m1, m2;
  8.  
  9. m1["A"]="1";
  10. m2["A"]="1";
  11.  
  12. m1["B"]="2";
  13. m2["B"]="2";
  14.  
  15. m1["X"]="30";
  16. //m2["X"]="340";
  17.  
  18. // m1["Y"]="53";
  19. // m2["Y"]="0";
  20. cout << (m1 == m2 ? "equal" : "not equal") << "\n";
  21. return 0;
  22. }
Success #stdin #stdout 0s 4880KB
stdin
Standard input is empty
stdout
not equal