What result do you want? If you want all the integers in a single vector, you could do something like:
std::ifstream input("input.txt");
std::vector<int> data(std::istream_iterator<int>(input),
std::istream_iterator<int>());
That discards the line-structure though -- you end up with the data all together. One easy way to maintain the original line structure is to read a line with getline, initialize a stringstream with that string, then put the values from that stringstream into a vector (and push that onto the back of a vector of vectors of int).
std::vector<std::vector<int> > data;
std::vector<int> temp;
std::string t;
while (std::getline(t, input)) {
std::istringstream in(t);
std::copy(std::istream_iterator<int>(in),
std::istream_itertor<int>(),
std::back_inserter(temp);
data.push_back(temp);
}