You are trying to allocate memory for a non-pointer type. You need to do one of the following:

Code:
Point *path = new Point[2];

// blah
delete [] path;
Or...
Code:
Point path[2];

//blah..