Question on my code

Hi friends,
here is my program that read a file and push_back to the vvector and I have this error could you please correct me what part I am wrong?

Many thanks,
Elahe

Error
=====
C:\C++\sample.cpp(15) : error C2784: 'class std::basic_ostream<_E,_Tr> &__cdecl std::operator <<(class std::basic_ostream<_E,_Tr> &,const short *)' : could not deduce template argument for 'class std::basic_ostream<_E,_Tr> &' from 'int'

Code
======
//: C02:GetWords.cpp
// Break a file into whitespace-separated words
#include <string>
#include <fstream>
#include <vector>
using namespace std;

int main() {
vector<string> words;
ifstream in("Fillvector.cpp");
string word;
while(in >> word)
words.push_back(word);
for(int i = 0; i < words.size(); i++)
cout << words[i] << endl;
} ///:~
[995 byte] By [elahe shafie] at [2007-11-18 3:13:25]
# 1 Re: Question on my code
#include <iostream>
Federal102 at 2007-11-11 3:46:33 >
# 2 Re: Question on my code
Thanks Federal102 :) now it works:)
elahe shafie at 2007-11-11 3:47:34 >