What is wrong?

#include <iostream>


void main() {//if he insists on using void
char word[25][1000];
int d=0;
while (word[d]!="eof"|d<999) {
cout << "enter the word to sort or eof for terminate";
cin >> word[d];
d++;
}

}