Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //#include "pch.h"
- #include <iostream>
- #include <iomanip>
- #include <vector>
- using namespace std;
- double sqr(double x) {
- return (x * x);
- }
- int main()
- {
- vector<int> a(10, 0);
- int b = 1000;
- while (b != 0) {
- cin >> b;
- if (b != 0) a[b - 1]++;
- }
- for (int i = 0; i < 9; i++) {
- cout << a[i] << " ";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement