You left out the header for
main()
.
int main()
You also spelled a function name as "getWord" in the prototype and as "getword" in the function definition.
And you have a (;) semicolon at the end of the function definition for "getword". That makes it another prototype and the {} braced block that follows will get an error.
And I see a statement "get char();" at the end of main() that is not C++ syntax of any sort. Delete or comment that out until you know what really belongs there.
That's all I see on the first pass. Fix those and *carefully* look at the code near the first error next time you compile. The compiler error message isn't always helpful, so you need to develop the habit of reading your own code critically. I said "first error" because one error can produce several messages at different lines, as the compiler tries to "fix up" the error to continue compiling. Usually the first message is a real error, but others may be phantom messages that will disappear when you fix an earlier error.