Are there any conditions on the coordinates for the nodes ? Is "-1 -2" a valid location, what is the maximal coordinate ?
I have been checking that, when I ouput something, it matches all the conditions, but still I get WA 
(Btw, I think that we should get 0 point when a solution is not valid, instead of WA, and reserve WA for malformed output only.)