fork download
  1. #include <iostream>
  2. #include<unordered_map>
  3. #include<bits/stdc++.h>
  4. using namespace std;
  5.  
  6. int main() {
  7. unordered_map<int,int>m;
  8. for(int i=0;i<5;i++)
  9. {
  10. m[i]++;
  11. }
  12. for(int i=0;i<5;i++)
  13. cout<<m[i]<<" ";
  14. return 0;
  15. }
Success #stdin #stdout 0s 4360KB
stdin
Standard input is empty
stdout
1 1 1 1 1