Advertisement
juaniisuar

Untitled

Nov 3rd, 2015
423
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include <iostream>
  2. #include <map>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. int cant, x;
  9. map<int,int> M;
  10. cout << "Cant: " << endl;
  11. cin >> cant;
  12. for(int i=0; i<cant; i++){
  13. cin >> x;
  14. M[x]++;
  15. }
  16. cout << M[4] << endl;
  17.  
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement