#include <iostream>

int main()
{
	int **x; //You should probably invest in a better name :P
	int lines;
	int numbers;

	std::cout << "How many lines of numbers? ";
	std::cin >> lines;

	x = new int *[lines];

	for( int i = 0; i < lines; ++i )
	{
    	std::cout << "How many numbers is this line? ";
    	std::cin >> numbers;
    	x[i] = new int[numbers];
    	std::cout << "Please enter the numbers separated by spaces: ";
    	for( int j = 0; j < numbers; ++j )
    	{
      	std::cin >> x[i][j];
    	}
	}
	
	std::cout << std::endl <<  x[1][0] << std::endl;
	//
	for( int i = 0; i < lines; ++i )
    	delete[] x[i];

	delete[] x;
}