I have been trying to solve this question :
https://icpcarchive.ecs.baylor.edu/index.php?option=onlinejudge&page=show_problem&problem=122
But I think that the sample output should be a little defferent.
Shouldnt the output be like-
Maze 1:
+---+---+---+
| |
+---+ + +
| | |
+ + + +
| | |
+ + +---+
| |
+---+---+---+
Maze 2:
+---+---+---+---+---+---+---+
| | |
+ + +---+ +---+ + +
| | | | |
+ +---+ +---+ +---+---+
| |
+---+---+---+---+---+---+---+
Maze 3:
+---+---+---+---+
| |
+---+ + + +
| | | | |
+ + +---+ +
| |
+---+---+---+ +
| | |
+ + + +---+
| |
+---+---+---+---+