please help, solve with recursion

Area of the room
Your task is to write a program that will find the area of room in a given square maze.

Note. Use recursion for solving this problem.

Input:
First line contains only one number N (3 <= N <= 10).The number that describes the size of the square maze.
On the next N lines maze itself is inputed ('.' - empty cell,'*' - wall).
And the last line contains two numbers - the row and column of the cell in the room those area you need to find.It is guaranteed that given cell is empty and that the maze is surrounded by walls on all sides.


Output:
Output only one number - total amount of empty cells in the selected room.


Samples:






Input

5
*****
**..*
*.*.*
*..**
*****
2 4
output 3
Was this not already posted? Oh, wait, it was. What was the point of posting the same problem twice in the space of less that 6h?
Dup post for reference: http://cplusplus.com/forum/general/97538/

April Fools!??? ... or perhaps just another way of saying "GIMME TEH CODEZ"!??
Topic archived. No new replies allowed.