So I'm working on this code and I think I've actually almost got it, but my compiler is telling me I'm missing "{" somewhere in the code.
#include "std_lib_facilities.h"
using namespace std;
int main()
{
vector<string> dict;
int p,count = 0;
ifstream in("/usr/share/dict/words");
copy(istream_iterator<string>(in),
istream_iterator<string>(),
back_inserter(dict));
try {
cout<<"enter the position to test\n";
cin>>p;
int check(string s,unsigned int p);
for(unsigned int i=0;i<dict.size();i++)
{
if(check(dict[i],p-1))
count++;
}
cout<<count<<" words in the dictionary have vowels [aeiou] at position "<<p<<endl;
} catch(...) {
cout << "Data Unavailable\n";
}
}