Hey guys! I'm not sure where I've gone wrong in this problem: [SERGRID](http://www.spoj.com/problems/SERGRID/)↵
↵
A little help would be appreciated! [Code](https://ideone.com/tRENyv)↵
↵
↵
↵
↵
A little help would be appreciated! [Code](https://ideone.com/tRENyv)↵
↵
↵
↵