fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. unordered_map<char,int> hash;
  7. hash['c']=1;
  8. hash['a']=2;
  9. hash['b']=3;
  10. hash['d']=5;
  11. hash['e']=0;
  12.  
  13. for(auto i:hash)
  14. {
  15. cout<<i.first<<" "<<i.second<<" || ";
  16. }
  17. return 0;
  18. }
Success #stdin #stdout 0.01s 5420KB
stdin
Standard input is empty
stdout
e 0 || d 5 || b 3 || c 1 || a 2 ||