I have a task to count many "a" letters in an array
so this is my code
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
int i;
int ch[10];
cout<<"enter 10 letters"<<endl;
for(i=0;i<10;i++){
cin>>ch[i];
}
cout<<endl;cout<<endl;
cout<<"this is the letter you entered"<<endl;
cout<<endl;
for(i=0;i<10;i++){
cout<<(ch[i])<<endl;
}
vector<int> a = ch[10];
int cnt;
cnt = count(a.begin(), a.end(), "a");
cout<<"many a's are = "<<cnt<<endl;
}
but it give me error [Error] conversion from 'int' to non-scalar type 'std::vector' requested
please help me, reference my code from https://www.tutorialspoint.com/cpp_standard_library/cpp_algorithm_count.htm