Test case 3 not being passed

https://ide.codingblocks.com/s/289032

Change line 37 to if(v[i].first < s) and then check