Getting WA in Convex Hull Problem

I am getting WA in Spoj Problem ,Build the fence . Link to the problem : SPOJ.com - Problem BSHEEP
Link to my code : NpcblK - Online C++0x Compiler & Debugging Tool - Ideone.com . Can anyone help me to find the error or give any counter test case. I used graham scan algorithm to make my code efficient.