Sir pls tell the error in my code.. output is not coming correct

@Vaibhav277 at line 42 of your code you should update F as F-(v[x].first-prev), you forgot giving brackets here due to which prev is getting subtracted from F too.

thank u sir… sometimes these small errors really irritates a lot…

sir for single test case output is not coming correct… can u pls check it

use continue after incrementing ans at line 51.