Răspuns:
#include <iostream>
#include <vector>
int main()
{
std::vector<int> input;
int a;
input.resize(a);
std::cout << "Cate numere?" << std::endl;
std::cin >> a;
std::cout << std::endl;
for(int i = 0; i < a;++i){
int temp;
std::cin >> temp;
input.push_back(temp);
}
input.shrink_to_fit();
a = input.size();
std::cout << std::endl;
int output = 0;
for(int i = 0; i < a;++i) if((input[i] % 10) == 9) output++;
std::cout << "Numar de numere ce se termina cu 9: " << output << std:: endl;
return 0;
}