If the compiler is complaining, the code is obviously still not right.
Maybe you should define the missing symbols?
try
int array_words[10]; right next to where you declare get_content. (They're both used in the same place.)
The declaration for
char str[BUFSIZ] needs to come before the for loop that copies into it:
for(int i =0; line[i];++i)
str[i]=line[i];
That code sure looks like a strcpy() to me, maybe you should look into it.
PS- When posting c++ code, please use c++ code tags
[code=c++]
// Your code here
[/code]