Line 20 is not legal C++, you must supply a size when you declare the array.
Passing what should be an int array to a function called getword seems a little suspect. Are your words normally made up of numbers?
In getword, input is a local buffer that ceases existing when the function ends. You don't even use the array you passed in.
Once again in vertical you're taking an array of type int, which is suspect.
Not that in:
getword returns a single int (except of course, you don't actually return anything from the function) and vertical expects an array, not a single int.
You also fail to return a value from vertical.